Commit
·
b188dc3
1
Parent(s):
03d56ee
'gr.Label' used in place of gr.outputs.Label
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def classify_plot_genre(description):
|
|
| 21 |
probs = torch.sigmoid(logits)[0]
|
| 22 |
return dict(zip(genres, map(float, probs)))
|
| 23 |
|
| 24 |
-
label = gr.
|
| 25 |
iface = gr.Interface(fn=classify_plot_genre, inputs="text", outputs=label)
|
| 26 |
iface.launch(inline=False)
|
| 27 |
|
|
|
|
| 21 |
probs = torch.sigmoid(logits)[0]
|
| 22 |
return dict(zip(genres, map(float, probs)))
|
| 23 |
|
| 24 |
+
label = gr.Label(num_top_classes=5)
|
| 25 |
iface = gr.Interface(fn=classify_plot_genre, inputs="text", outputs=label)
|
| 26 |
iface.launch(inline=False)
|
| 27 |
|