Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,6 +58,8 @@ app_examples = [
|
|
| 58 |
|
| 59 |
]
|
| 60 |
|
|
|
|
|
|
|
| 61 |
inputs = [
|
| 62 |
gr.Textbox(label="text", value=app_examples[0][0]),
|
| 63 |
|
|
@@ -65,5 +67,5 @@ inputs = [
|
|
| 65 |
|
| 66 |
|
| 67 |
label = gr.outputs.Label(num_top_classes=4)
|
| 68 |
-
iface = gr.Interface(fn=classify_movie_genre, inputs=inputs, outputs=label, examples=app_examples)
|
| 69 |
iface.launch(inline=False)
|
|
|
|
| 58 |
|
| 59 |
]
|
| 60 |
|
| 61 |
+
app_title = "Movie Genre Classifier"
|
| 62 |
+
|
| 63 |
inputs = [
|
| 64 |
gr.Textbox(label="text", value=app_examples[0][0]),
|
| 65 |
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
label = gr.outputs.Label(num_top_classes=4)
|
| 70 |
+
iface = gr.Interface(fn=classify_movie_genre, inputs=inputs, outputs=label, examples=app_examples, title=app_title)
|
| 71 |
iface.launch(inline=False)
|