Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -179,7 +179,7 @@ with gr.Blocks() as transbot:
|
|
| 179 |
gr.Column()
|
| 180 |
with gr.Column():
|
| 181 |
with gr.Row():
|
| 182 |
-
t_space = gr.Dropdown(label="Translate Space", choices=(l for l in lang_id),type = "index", value="English")
|
| 183 |
#t_space = gr.Dropdown(label="Translate Space", choices=list(lang_id.keys()),value="English")
|
| 184 |
t_submit = gr.Button("Translate Space")
|
| 185 |
gr.Column()
|
|
@@ -190,8 +190,8 @@ with gr.Blocks() as transbot:
|
|
| 190 |
md = gr.Markdown("""<h1><center>Translate - 100 Languages</center></h1><h4><center>Translation may not be accurate</center></h4>""")
|
| 191 |
with gr.Row():
|
| 192 |
|
| 193 |
-
lang_from = gr.Dropdown(label="From:", choices=(l for l in lang_id),value="English")
|
| 194 |
-
lang_to = gr.Dropdown(label="To:", choices=(l for l in lang_id),value="Chinese")
|
| 195 |
|
| 196 |
#lang_from = gr.Dropdown(label="From:", choices=list(lang_id.keys()),value="English")
|
| 197 |
#lang_to = gr.Dropdown(label="To:", choices=list(lang_id.keys()),value="Chinese")
|
|
|
|
| 179 |
gr.Column()
|
| 180 |
with gr.Column():
|
| 181 |
with gr.Row():
|
| 182 |
+
t_space = gr.Dropdown(label="Translate Space", choices=(l.name for l in lang_id),type = "index", value="English")
|
| 183 |
#t_space = gr.Dropdown(label="Translate Space", choices=list(lang_id.keys()),value="English")
|
| 184 |
t_submit = gr.Button("Translate Space")
|
| 185 |
gr.Column()
|
|
|
|
| 190 |
md = gr.Markdown("""<h1><center>Translate - 100 Languages</center></h1><h4><center>Translation may not be accurate</center></h4>""")
|
| 191 |
with gr.Row():
|
| 192 |
|
| 193 |
+
lang_from = gr.Dropdown(label="From:", choices=(l.name for l in lang_id),value="English")
|
| 194 |
+
lang_to = gr.Dropdown(label="To:", choices=(l.name for l in lang_id),value="Chinese")
|
| 195 |
|
| 196 |
#lang_from = gr.Dropdown(label="From:", choices=list(lang_id.keys()),value="English")
|
| 197 |
#lang_to = gr.Dropdown(label="To:", choices=list(lang_id.keys()),value="Chinese")
|