ManjinderUNCC commited on
Commit
016df4b
·
verified ·
1 Parent(s): b7e150c

Update gradio_interface.py

Browse files
Files changed (1) hide show
  1. 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
- inputs = gr.inputs.Textbox(lines=7, label="Enter your text")
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)