cecilemacaire commited on
Commit
46e5a15
·
verified ·
1 Parent(s): f584c8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -56,7 +56,7 @@ def generate_html(ids):
56
  else: # not found pictogram
57
  html_content += f'''
58
  <figure>
59
- <figcaption>Token "{lemma}" not in the lexicon</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(css=".custom-textbox {border: 2px solid #4CAF50; border-radius: 8px;}") as demo:
74
- gr.Markdown("# Visualize Pictograms Application")
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