ehsannotes commited on
Commit
9653bda
·
verified ·
1 Parent(s): 2c1579a

Create Gradio Interface.py

Browse files
Files changed (1) hide show
  1. Gradio Interface.py +19 -0
Gradio Interface.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app.py (bottom section)
2
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
3
+ gr.Markdown("## IELTS Writing Evaluator")
4
+
5
+ with gr.Row():
6
+ input_essay = gr.Textbox(label="Your Essay", lines=10)
7
+ output_scores = gr.JSON(label="Results")
8
+
9
+ gr.Examples(
10
+ examples=[
11
+ ["Education plays a vital role in societal development..."]
12
+ ],
13
+ inputs=input_essay
14
+ )
15
+
16
+ submit = gr.Button("Evaluate")
17
+ submit.click(analyze_essay, inputs=input_essay, outputs=output_scores)
18
+
19
+ demo.launch()