jfbg
Browse files
app.py
CHANGED
@@ -22,6 +22,6 @@ def classify_recipe(description):
|
|
22 |
result = {class_label: float(prob) for class_label, prob in zip(recipe,probs)}
|
23 |
return result
|
24 |
|
25 |
-
label = gr.outputs.Label(num_top_classes=
|
26 |
iface = gr.Interface(fn=classify_recipe, inputs="text", outputs=label)
|
27 |
iface.launch(inline=False)
|
|
|
22 |
result = {class_label: float(prob) for class_label, prob in zip(recipe,probs)}
|
23 |
return result
|
24 |
|
25 |
+
label = gr.outputs.Label(num_top_classes=5)
|
26 |
iface = gr.Interface(fn=classify_recipe, inputs="text", outputs=label)
|
27 |
iface.launch(inline=False)
|