Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -18,15 +18,14 @@ with gr.Blocks(css='styles.css') as app:
|
|
18 |
|
19 |
with gr.Tab("Reading Level Calculator"):
|
20 |
option_reading_level = {}
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
)
|
30 |
|
31 |
input_text = gr.Textbox(label="Input Text", placeholder="Type here...", lines=4)
|
32 |
|
|
|
18 |
|
19 |
with gr.Tab("Reading Level Calculator"):
|
20 |
option_reading_level = {}
|
21 |
+
model_select = gr.Radio(choices=model_types, label="Readability Score Model", value=model_types[1], interactive=True, scale=2)
|
22 |
+
model_select_btn = gr.Button("Select Readability Score Model", scale=1)
|
23 |
+
|
24 |
+
model_select_btn.click(
|
25 |
+
fn=set_reading_levels,
|
26 |
+
inputs=[model_select],
|
27 |
+
outputs=[option_reading_level]
|
28 |
+
)
|
|
|
29 |
|
30 |
input_text = gr.Textbox(label="Input Text", placeholder="Type here...", lines=4)
|
31 |
|