Commit ·
a78d024
1
Parent(s): 4208ff2
Change input interface to slider and checkbox
Browse files
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",
|
| 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 |
|