rodrigomasini commited on
Commit
a337459
·
verified ·
1 Parent(s): 21f2eeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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
- fk_grade = gr.Number(label="Flesch-Kincaid Grade Level")
382
- fr_ease = gr.Number(label="Flesch Reading Ease")
383
- g_fog = gr.Number(label="Gunning Fog Index")
 
 
384
 
385
- calculate_button = gr.Button("Calculate Metrics")
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)