SinaAhmadi commited on
Commit
704e535
1 Parent(s): 5e186d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -15
app.py CHANGED
@@ -105,11 +105,10 @@ title = """
105
  """
106
 
107
  description = """
108
-
109
  <ul>
110
  <li style="font-size:160%;">&quot;<em>mar7aba!</em>&quot;</li>
111
- <li style="font-size:160%;">&quot;<em>هاو ئار یوو؟</em>&quot;</li>
112
- <li style="font-size:160%;">&quot;<em>Μπιάνβενου α σετ ντεμό!</em>&quot;</li>
113
  </ul>
114
 
115
  <p style="font-size:160%;">What all these sentences are in common? Being greeted in Arabic with &quot;<em>mar7aba</em>&quot; written in the Latin script, then asked how you are (&quot;<em>هاو ئار یوو؟</em>&quot;) in English using the Perso-Arabic script of Kurdish and then, welcomed to this demo in French (&quot;<em>Μπιάνβενου α σετ ντεμό!</em>&quot;) written in Greek script. All these sentences are written in an <strong>unconventional</strong> script.</p>
@@ -137,6 +136,13 @@ examples = [
137
  ]
138
 
139
 
 
 
 
 
 
 
 
140
 
141
  demo = gr.Interface(
142
  title=title,
@@ -144,20 +150,11 @@ demo = gr.Interface(
144
  fn=normalize,
145
  inputs = [
146
  gr.inputs.Textbox(lines=4, label="Noisy Text \U0001F974"),
147
- gr.Dropdown(label="Language in unconventional script", choices=sorted(list(languages_scripts.keys()))),
148
  ],
149
  outputs=gr.outputs.Textbox(label="Normalized Text \U0001F642"),
150
- examples=examples
 
151
  )
152
 
153
- gr.HTML(
154
- """
155
- <div style="text-align: justify; max-width: 1200px; margin: 20px auto;">
156
- <h3 style="font-weight: 450; font-size: 0.8rem; margin: 0rem">
157
- <b>Created and deployed by Sina Ahmadi <a href="https://sinaahmadi.github.io/">(https://sinaahmadi.github.io/)</a>.
158
- </h3>
159
- </div>
160
- """
161
- )
162
-
163
  demo.launch()
 
105
  """
106
 
107
  description = """
 
108
  <ul>
109
  <li style="font-size:160%;">&quot;<em>mar7aba!</em>&quot;</li>
110
+ <li style="font-size:160%;">&quot;<em>هاو ئار یوو؟</em>&quot;</li>
111
+ <li style="font-size:160%;">&quot;<em>Μπιάνβενου α σετ ντεμό!</em>&quot;</li>
112
  </ul>
113
 
114
  <p style="font-size:160%;">What all these sentences are in common? Being greeted in Arabic with &quot;<em>mar7aba</em>&quot; written in the Latin script, then asked how you are (&quot;<em>هاو ئار یوو؟</em>&quot;) in English using the Perso-Arabic script of Kurdish and then, welcomed to this demo in French (&quot;<em>Μπιάνβενου α σετ ντεμό!</em>&quot;) written in Greek script. All these sentences are written in an <strong>unconventional</strong> script.</p>
 
136
  ]
137
 
138
 
139
+ article = """
140
+ <div style="text-align: justify; max-width: 1200px; margin: 20px auto;">
141
+ <h3 style="font-weight: 450; font-size: 0.8rem; margin: 0rem">
142
+ <b>Created and deployed by Sina Ahmadi <a href="https://sinaahmadi.github.io/">(https://sinaahmadi.github.io/)</a>.
143
+ </h3>
144
+ </div>
145
+ """
146
 
147
  demo = gr.Interface(
148
  title=title,
 
150
  fn=normalize,
151
  inputs = [
152
  gr.inputs.Textbox(lines=4, label="Noisy Text \U0001F974"),
153
+ gr.Dropdown(label="Language in unconventional script \U0001F642", choices=sorted(list(languages_scripts.keys()))),
154
  ],
155
  outputs=gr.outputs.Textbox(label="Normalized Text \U0001F642"),
156
+ examples=examples,
157
+ article=article
158
  )
159
 
 
 
 
 
 
 
 
 
 
 
160
  demo.launch()