Spaces:
Sleeping
Sleeping
Update gradio_interface.py
Browse files- gradio_interface.py +1 -3
gradio_interface.py
CHANGED
@@ -25,8 +25,6 @@ inputs = [
|
|
25 |
gr.File(label="Upload a file")
|
26 |
]
|
27 |
|
28 |
-
output = gr.outputs.Textbox(label="Classification Results")
|
29 |
-
|
30 |
def classify_and_save(input_text, input_file):
|
31 |
if input_text:
|
32 |
text = input_text
|
@@ -39,5 +37,5 @@ def classify_and_save(input_text, input_file):
|
|
39 |
save_to_file(text, predicted_labels)
|
40 |
return predicted_labels
|
41 |
|
42 |
-
iface = gr.Interface(fn=classify_and_save, inputs=inputs,
|
43 |
iface.launch(share=True)
|
|
|
25 |
gr.File(label="Upload a file")
|
26 |
]
|
27 |
|
|
|
|
|
28 |
def classify_and_save(input_text, input_file):
|
29 |
if input_text:
|
30 |
text = input_text
|
|
|
37 |
save_to_file(text, predicted_labels)
|
38 |
return predicted_labels
|
39 |
|
40 |
+
iface = gr.Interface(fn=classify_and_save, inputs=inputs, title="Text Classifier")
|
41 |
iface.launch(share=True)
|