nebiyu29 commited on
Commit
8c2b131
1 Parent(s): 05ac656

making the output simple

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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,