Mjwarren3 commited on
Commit
46673e8
1 Parent(s): b33e0d1

Switching to latest gradient library

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -18,14 +18,14 @@ iface = gr.Interface(
18
  "Output Text, Level and Similarity": get_output_text_level_and_similarity
19
  },
20
  inputs=[
21
- gr.inputs.Textbox(label="Input Text", lines=2),
22
- gr.inputs.Dropdown(choices=["1", "2", "3", "4", "5"], label="Target Reading Level")
23
  ],
24
  outputs=[
25
- gr.outputs.Textbox(label="Input Reading Level"),
26
- gr.outputs.Textbox(label="Output Text"),
27
- gr.outputs.Textbox(label="Output Reading Level"),
28
- gr.outputs.Textbox(label="Output Text Similarity")
29
  ],
30
  title="Text Reading Level and Generation",
31
  description="This app calculates the reading level of an input text and generates new text at a specified reading level, along with its reading level and similarity."
 
18
  "Output Text, Level and Similarity": get_output_text_level_and_similarity
19
  },
20
  inputs=[
21
+ gr.components.Textbox(label="Input Text", lines=2),
22
+ gr.components.Dropdown(choices=["1", "2", "3", "4", "5"], label="Target Reading Level")
23
  ],
24
  outputs=[
25
+ gr.components.Text(label="Input Reading Level"),
26
+ gr.components.Text(label="Output Text"),
27
+ gr.components.Text(label="Output Reading Level"),
28
+ gr.components.Text(label="Output Text Similarity")
29
  ],
30
  title="Text Reading Level and Generation",
31
  description="This app calculates the reading level of an input text and generates new text at a specified reading level, along with its reading level and similarity."