Spaces:
Sleeping
Sleeping
Update gradio_interface.py
Browse files- gradio_interface.py +1 -4
gradio_interface.py
CHANGED
@@ -52,8 +52,5 @@ def evaluate_text(input_text):
|
|
52 |
return evaluation_results
|
53 |
|
54 |
# Gradio Interface
|
55 |
-
|
56 |
-
outputs = gr.outputs.JSON(label="Evaluation Results")
|
57 |
-
|
58 |
-
iface = gr.Interface(fn=evaluate_text, inputs=inputs, outputs=outputs, title="Text Evaluation")
|
59 |
iface.launch(share=True)
|
|
|
52 |
return evaluation_results
|
53 |
|
54 |
# Gradio Interface
|
55 |
+
iface = gr.Interface(fn=evaluate_text, inputs="text", outputs="json", title="Text Evaluation", description="Enter your text")
|
|
|
|
|
|
|
56 |
iface.launch(share=True)
|