Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,14 +15,14 @@ def tagging(
|
|
| 15 |
except error:
|
| 16 |
raise gr.Error(f"Error {error}")
|
| 17 |
|
| 18 |
-
classifier(text_input, candidate_labels
|
| 19 |
|
| 20 |
return text
|
| 21 |
|
| 22 |
app = gr.Interface(fn=tagging, inputs=[
|
| 23 |
-
gr.Textbox(label="
|
| 24 |
-
gr.Textbox(label="
|
| 25 |
-
gr.Checkbox(label="
|
| 26 |
], outputs="text")
|
| 27 |
|
| 28 |
app.launch()
|
|
|
|
| 15 |
except error:
|
| 16 |
raise gr.Error(f"Error {error}")
|
| 17 |
|
| 18 |
+
classifier(text_input, candidate_labels)
|
| 19 |
|
| 20 |
return text
|
| 21 |
|
| 22 |
app = gr.Interface(fn=tagging, inputs=[
|
| 23 |
+
gr.Textbox(label="Input here"),
|
| 24 |
+
gr.Textbox(label="Mags here"),
|
| 25 |
+
gr.Checkbox(label="Multi_label", value=True)
|
| 26 |
], outputs="text")
|
| 27 |
|
| 28 |
app.launch()
|