nebiyu29 commited on
Commit
79090fb
·
verified ·
1 Parent(s): 5bd08be

changed from table format into data frame format in the output section

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -27,9 +27,7 @@ def model_classifier(text):
27
 
28
 
29
  #lets define how the output looks like
30
- output_format=gr.Table(
31
- columns=["label","probabilities"]
32
- )
33
 
34
  #lets write something that accepts input as text and returns the most likely out come out of 3
35
  demo=gr.Interface(
 
27
 
28
 
29
  #lets define how the output looks like
30
+ output_format=gr.DataFrame(row_count=(3,"dynamic"),col_count=(2,"fixed"),label="label probabilities",headers=["label","probabilities"])
 
 
31
 
32
  #lets write something that accepts input as text and returns the most likely out come out of 3
33
  demo=gr.Interface(