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