Spaces:
Sleeping
Sleeping
ManjinderUNCC
commited on
Commit
•
5b81d20
1
Parent(s):
6589640
Update gradio_interface.py
Browse files- gradio_interface.py +1 -5
gradio_interface.py
CHANGED
@@ -13,13 +13,9 @@ def classify_text(text):
|
|
13 |
return predicted_labels
|
14 |
|
15 |
# Gradio Interface
|
16 |
-
inputs = gr.inputs.Textbox(lines=7, label="Enter your text")
|
17 |
-
|
18 |
def classify_and_save(input_text):
|
19 |
predicted_labels = classify_text(input_text)
|
20 |
return predicted_labels
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
iface = gr.Interface(fn=classify_and_save, inputs=inputs, outputs=output, title="Text Classifier")
|
25 |
iface.launch(share=True)
|
|
|
13 |
return predicted_labels
|
14 |
|
15 |
# Gradio Interface
|
|
|
|
|
16 |
def classify_and_save(input_text):
|
17 |
predicted_labels = classify_text(input_text)
|
18 |
return predicted_labels
|
19 |
|
20 |
+
iface = gr.Interface(classify_and_save, "textbox", "json", title="Text Classifier", description="Enter your text")
|
|
|
|
|
21 |
iface.launch(share=True)
|