Spaces:
Sleeping
Sleeping
unknown
commited on
Commit
•
df3fbfd
1
Parent(s):
764f2a7
Add application file
Browse files
app.py
CHANGED
@@ -22,6 +22,6 @@ def classify_movie_genre(Overview):
|
|
22 |
return dict(zip(genres, map(float, probs)))
|
23 |
|
24 |
|
25 |
-
label = gr.outputs.
|
26 |
iface = gr.Interface(fn=classify_movie_genre, inputs="text", outputs=label)
|
27 |
iface.launch(inline=False)
|
|
|
22 |
return dict(zip(genres, map(float, probs)))
|
23 |
|
24 |
|
25 |
+
label = gr.outputs.Label(num_top_classes=3)
|
26 |
iface = gr.Interface(fn=classify_movie_genre, inputs="text", outputs=label)
|
27 |
iface.launch(inline=False)
|