Spaces:
Sleeping
Sleeping
Commit
•
0b95f79
1
Parent(s):
8b7d7ff
Upload app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,11 @@ with gr.Blocks(css='styles.css') as app:
|
|
44 |
outputs=[output_input_reading_score, output_input_reading_level]
|
45 |
)
|
46 |
|
47 |
-
|
|
|
|
|
|
|
|
|
48 |
|
49 |
output_reading_level = gr.Textbox(label="Output Reading Level", placeholder="Output Reading Level...", lines=1)
|
50 |
output_similarity = gr.Textbox(label="Similarity", placeholder="Similarity Score...", lines=1)
|
|
|
44 |
outputs=[output_input_reading_score, output_input_reading_level]
|
45 |
)
|
46 |
|
47 |
+
if readability_model == model_types[0]:
|
48 |
+
grade_level = gr.Radio(choices=list(fre_levels.keys()), label="Target Reading Level", interactive=True)
|
49 |
+
else:
|
50 |
+
grade_level = gr.Radio(choices=list(sbert_levels.keys()), label="Target Reading Level", interactive=True)
|
51 |
+
#grade_level = gr.Radio(choices=list(fre_levels.keys()) if readability_model == model_types[0] else list(sbert_levels.keys()), label="Target Reading Level", interactive=True)
|
52 |
|
53 |
output_reading_level = gr.Textbox(label="Output Reading Level", placeholder="Output Reading Level...", lines=1)
|
54 |
output_similarity = gr.Textbox(label="Similarity", placeholder="Similarity Score...", lines=1)
|