Spaces:
Runtime error
Runtime error
making the output simple
Browse files
app.py
CHANGED
|
@@ -30,8 +30,11 @@ def model_classifier(text):
|
|
| 30 |
|
| 31 |
|
| 32 |
#lets define how the output looks like
|
| 33 |
-
output_format=gr.Dataframe(row_count=(3,"dynamic"),col_count=(2,"dynamic"),label="label probabilities",headers=["label","probabilities"])
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
#lets write something that accepts input as text and returns the most likely out come out of 3
|
| 36 |
demo=gr.Interface(
|
| 37 |
fn=model_classifier,
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
#lets define how the output looks like
|
| 33 |
+
#output_format=gr.Dataframe(row_count=(3,"dynamic"),col_count=(2,"dynamic"),label="label probabilities",headers=["label","probabilities"])
|
| 34 |
+
|
| 35 |
+
#the output looks like a json format
|
| 36 |
+
outputs_format=gr.outputs.Textbox(label="label probabilities")
|
| 37 |
+
|
| 38 |
#lets write something that accepts input as text and returns the most likely out come out of 3
|
| 39 |
demo=gr.Interface(
|
| 40 |
fn=model_classifier,
|