RobPruzan commited on
Commit
7cd54fa
·
1 Parent(s): 5c9c9ea
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -452,14 +452,13 @@ with gr.Blocks(title="Automatic Literacy and Speech Assesmen") as demo:
452
  with gr.Row():
453
  with gr.Box():
454
  div_output = gr.Label(label='Diversity Score', show_label=False)
455
- with gr.Column
456
- gr.Markdown("Diversity Heatmap | Blue cells are omitted from score | Darker = More Diverse")
457
- interpretation = gr.components.Interpretation(in_text, label="Diversity Heatmap")
458
- with gr.Column:
459
- gr.Markdown("Find Similar Words | Word must be part of analysis text | Enter only one word at a time")
460
- words1 = gr.Textbox(label="Word For Similarity")
461
- find_sim = gr.Button("Find Similar Words")
462
- sims = gr.Label()
463
  with gr.Box():
464
  gr.Markdown("Relative Difficulty Heatmap- How confusing the text is in that area")
465
  interpretation2 = gr.components.Interpretation(in_text, label="Difficulty Heatmap")
@@ -498,7 +497,7 @@ with gr.Blocks(title="Automatic Literacy and Speech Assesmen") as demo:
498
 
499
 
500
  grade.click(reading_difficulty, inputs=in_text, outputs=diff_output)
501
- grade.click(get_mean_score, inputs=in_text, outputs=[interpretation, div_output])
502
  grade.click(sliding_window, inputs=in_text, outputs=[plotter, interpretation2])
503
  grade1.click(speech_to_score, inputs=audio_file, outputs=diff_output)
504
  b1.click(speech_to_text, inputs=[audio_file1, target], outputs=[text, some_val, phones])
 
452
  with gr.Row():
453
  with gr.Box():
454
  div_output = gr.Label(label='Diversity Score', show_label=False)
455
+ gr.Markdown("Diversity Heatmap | Blue cells are omitted from score. | Darker = More Diverse")
456
+ interpretation = gr.components.Interpretation(in_text, label="Diversity Heatmap")
457
+
458
+ gr.Markdown("Find Similar Words | Word must be part of analysis text box | Enter only one word at a time")
459
+ words1 = gr.Textbox(label="Word For Similarity")
460
+ find_sim = gr.Button("Find Similar Words")
461
+ sims = gr.Label()
 
462
  with gr.Box():
463
  gr.Markdown("Relative Difficulty Heatmap- How confusing the text is in that area")
464
  interpretation2 = gr.components.Interpretation(in_text, label="Difficulty Heatmap")
 
497
 
498
 
499
  grade.click(reading_difficulty, inputs=in_text, outputs=diff_output)
500
+ grade.click(calculate_diversity, inputs=in_text, outputs=[interpretation, div_output])
501
  grade.click(sliding_window, inputs=in_text, outputs=[plotter, interpretation2])
502
  grade1.click(speech_to_score, inputs=audio_file, outputs=diff_output)
503
  b1.click(speech_to_text, inputs=[audio_file1, target], outputs=[text, some_val, phones])