aopp
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def predict_text(text):
|
|
| 24 |
iface = gr.Interface(
|
| 25 |
fn=predict_text,
|
| 26 |
inputs="text",
|
| 27 |
-
outputs=gr.outputs.
|
| 28 |
title="Food Origin Classification App",
|
| 29 |
description="Enter a Recipe, and it will predict the class label.",
|
| 30 |
)
|
|
|
|
| 24 |
iface = gr.Interface(
|
| 25 |
fn=predict_text,
|
| 26 |
inputs="text",
|
| 27 |
+
outputs=gr.outputs.JSON(label="Predicted Class and Probability"),
|
| 28 |
title="Food Origin Classification App",
|
| 29 |
description="Enter a Recipe, and it will predict the class label.",
|
| 30 |
)
|