Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -378,11 +378,13 @@ with gr.Blocks(title="RecurrentGPT", css="footer {visibility: hidden}", theme='s
|
|
378 |
with gr.Tab("Metrics"):
|
379 |
with gr.Row():
|
380 |
with gr.Column():
|
381 |
-
|
382 |
-
|
383 |
-
|
|
|
|
|
384 |
|
385 |
-
|
386 |
|
387 |
def update_metrics(text):
|
388 |
grade, ease, fog = calculate_readability_metrics(text)
|
|
|
378 |
with gr.Tab("Metrics"):
|
379 |
with gr.Row():
|
380 |
with gr.Column():
|
381 |
+
with gr.Box():
|
382 |
+
gr.Markdown("### Readability Metrics\n")
|
383 |
+
fk_grade = gr.Number(label="Flesch-Kincaid Grade Level")
|
384 |
+
fr_ease = gr.Number(label="Flesch Reading Ease")
|
385 |
+
g_fog = gr.Number(label="Gunning Fog Index")
|
386 |
|
387 |
+
calculate_button = gr.Button("Calculate Metrics")
|
388 |
|
389 |
def update_metrics(text):
|
390 |
grade, ease, fog = calculate_readability_metrics(text)
|