Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,6 @@ def classify_cartoon_genre(Description):
|
|
23 |
probs = torch.sigmoid(logits)[0]
|
24 |
return dict(zip(genres, map(float, probs)))
|
25 |
|
26 |
-
label = gr.outputs.Label(num_top_classes=
|
27 |
iface = gr.Interface(fn=classify_cartoon_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.outputs.Label(num_top_classes=2)
|
27 |
iface = gr.Interface(fn=classify_cartoon_genre, inputs="text", outputs=label)
|
28 |
iface.launch(inline=False)
|