Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def generate_html(ids):
|
|
56 |
else: # not found pictogram
|
57 |
html_content += f'''
|
58 |
<figure>
|
59 |
-
<figcaption>
|
60 |
</figure>
|
61 |
'''
|
62 |
return html_content
|
@@ -70,9 +70,8 @@ def process_text(input_text):
|
|
70 |
|
71 |
|
72 |
# Configuration de l'interface Gradio
|
73 |
-
with gr.Blocks(
|
74 |
-
gr.Markdown("# Visualize Pictograms
|
75 |
-
|
76 |
|
77 |
input_text = gr.Textbox(label="Enter a sequence of pictogram tokens:", placeholder="Example : bonjour je appeler plan_taille")
|
78 |
|
|
|
56 |
else: # not found pictogram
|
57 |
html_content += f'''
|
58 |
<figure>
|
59 |
+
<figcaption>"{lemma}" is not in the lexicon</figcaption>
|
60 |
</figure>
|
61 |
'''
|
62 |
return html_content
|
|
|
70 |
|
71 |
|
72 |
# Configuration de l'interface Gradio
|
73 |
+
with gr.Blocks() as demo:
|
74 |
+
gr.Markdown("# Visualize Pictograms")
|
|
|
75 |
|
76 |
input_text = gr.Textbox(label="Enter a sequence of pictogram tokens:", placeholder="Example : bonjour je appeler plan_taille")
|
77 |
|