Spaces:
Runtime error
Runtime error
bugs
Browse files
app.py
CHANGED
@@ -440,7 +440,7 @@ def vocab_level_inter(text):
|
|
440 |
sum+= lvl
|
441 |
total += 1
|
442 |
interp.append(('', 0))
|
443 |
-
return interp, level(sum/total*4*2.5)
|
444 |
|
445 |
with gr.Blocks(title="Automatic Literacy and Speech Assesmen") as demo:
|
446 |
gr.HTML("""<center><h7 style="font-size: 35px">Automatic Literacy and Speech Assesment</h7></center>""")
|
@@ -488,7 +488,7 @@ with gr.Blocks(title="Automatic Literacy and Speech Assesmen") as demo:
|
|
488 |
gr.Markdown("Relative Difficulty Heatmap- How confusing the text is in that area")
|
489 |
interpretation2 = gr.components.Interpretation(in_text, label="Difficulty Heatmap")
|
490 |
with gr.Box():
|
491 |
-
vocab_output = gr.Label(label='Vocabulary Level', show_label=
|
492 |
gr.Markdown("Vocabulary Level Heatmap | Darker = Higher Level} Blue cells are not in vocabulary")
|
493 |
interpretation3 = gr.components.Interpretation(in_text, label="Interpretation of Text")
|
494 |
with gr.Row():
|
|
|
440 |
sum+= lvl
|
441 |
total += 1
|
442 |
interp.append(('', 0))
|
443 |
+
return {'original': text, 'interpretation': interp}, level(sum/total*4*2.5)
|
444 |
|
445 |
with gr.Blocks(title="Automatic Literacy and Speech Assesmen") as demo:
|
446 |
gr.HTML("""<center><h7 style="font-size: 35px">Automatic Literacy and Speech Assesment</h7></center>""")
|
|
|
488 |
gr.Markdown("Relative Difficulty Heatmap- How confusing the text is in that area")
|
489 |
interpretation2 = gr.components.Interpretation(in_text, label="Difficulty Heatmap")
|
490 |
with gr.Box():
|
491 |
+
vocab_output = gr.Label(label='Vocabulary Level', show_label=True)
|
492 |
gr.Markdown("Vocabulary Level Heatmap | Darker = Higher Level} Blue cells are not in vocabulary")
|
493 |
interpretation3 = gr.components.Interpretation(in_text, label="Interpretation of Text")
|
494 |
with gr.Row():
|