Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,6 @@ def classify_film_genre(description):
|
|
23 |
probs = torch.sigmoid(logits)[0]
|
24 |
return dict(zip(genres, map(float, probs)))
|
25 |
|
26 |
-
label = gr.Label(num_top_classes=
|
27 |
iface = gr.Interface(fn=classify_film_genre, inputs="text", outputs=label)
|
28 |
iface.launch(inline=False)
|
|
|
23 |
probs = torch.sigmoid(logits)[0]
|
24 |
return dict(zip(genres, map(float, probs)))
|
25 |
|
26 |
+
label = gr.Label(num_top_classes=5)
|
27 |
iface = gr.Interface(fn=classify_film_genre, inputs="text", outputs=label)
|
28 |
iface.launch(inline=False)
|