jonathanjordan21 commited on
Commit
a78d024
·
1 Parent(s): 4208ff2

Change input interface to slider and checkbox

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def predict(question, lower_threshold, tags, multi_label):
38
 
39
 
40
  gr.Interface(fn=predict,
41
- inputs=["text", "number", "text", "boolean"],
42
  outputs="json").launch()
43
 
44
 
 
38
 
39
 
40
  gr.Interface(fn=predict,
41
+ inputs=["text", gr.Slider(0.0, 1.0), "text", gr.Checkbox(label='Allow multiple true classes')],
42
  outputs="json").launch()
43
 
44