Spaces:
Sleeping
Sleeping
Switching to latest gradient library
Browse files
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.
|
22 |
-
gr.
|
23 |
],
|
24 |
outputs=[
|
25 |
-
gr.
|
26 |
-
gr.
|
27 |
-
gr.
|
28 |
-
gr.
|
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."
|