Spaces:
Sleeping
Sleeping
Fixed demo bug with gradio 4.x
Browse files
app.py
CHANGED
|
@@ -147,16 +147,15 @@ article = """
|
|
| 147 |
</h3>
|
| 148 |
</div>
|
| 149 |
"""
|
| 150 |
-
|
| 151 |
demo = gr.Interface(
|
| 152 |
title=title,
|
| 153 |
description=description,
|
| 154 |
fn=normalize,
|
| 155 |
-
inputs
|
| 156 |
-
gr.
|
| 157 |
gr.Dropdown(label="Language in unconventional script", choices=sorted(list(languages_scripts.keys()))),
|
| 158 |
],
|
| 159 |
-
outputs=gr.
|
| 160 |
examples=examples,
|
| 161 |
article=article,
|
| 162 |
examples_per_page=20
|
|
|
|
| 147 |
</h3>
|
| 148 |
</div>
|
| 149 |
"""
|
|
|
|
| 150 |
demo = gr.Interface(
|
| 151 |
title=title,
|
| 152 |
description=description,
|
| 153 |
fn=normalize,
|
| 154 |
+
inputs=[
|
| 155 |
+
gr.Textbox(lines=4, label="Noisy Text \U0001F974"), # Remove .inputs
|
| 156 |
gr.Dropdown(label="Language in unconventional script", choices=sorted(list(languages_scripts.keys()))),
|
| 157 |
],
|
| 158 |
+
outputs=gr.Textbox(label="Normalized Text \U0001F642"), # Remove .outputs
|
| 159 |
examples=examples,
|
| 160 |
article=article,
|
| 161 |
examples_per_page=20
|