chenjian commited on
Commit
fe7cca4
1 Parent(s): 1a8090a

add multiple languages support

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -199,13 +199,13 @@ with block:
199
  margin=False,
200
  rounded=(False, True, True, False),
201
  )
202
- language = gr.Dropdown(label="语言(language", choices=['中文(Chineses)','英文(English)', '日文(Japanese)', '韩文(Korean)'], value='中文(Chineses)', type="index")
203
- styles = gr.Dropdown(label="风格(style", choices=['水彩(Watercolor)','油画(Oil painting)', '粉笔画(Chalk drawing)', '卡通(Cartoon)', '蜡笔画(Crayon drawing)', '儿童画(Children\'s drawing)', '探索无限(Explore infinity)'], value='探索无限(Explore infinity)', type="index")
204
  gallery = gr.Gallery(
205
  label="Generated images", show_label=False, elem_id="gallery"
206
  ).style(grid=[2, 3], height="auto")
207
  status_text = gr.Textbox(
208
- label="处理状态(Process status",
209
  show_label=True,
210
  max_lines=1,
211
  interactive=False
 
199
  margin=False,
200
  rounded=(False, True, True, False),
201
  )
202
+ language = gr.Dropdown(label="语言(language)", choices=['中文(Chineses)','英文(English)', '日文(Japanese)', '韩文(Korean)'], value='中文(Chineses)', type="index")
203
+ styles = gr.Dropdown(label="风格(style)", choices=['水彩(Watercolor)','油画(Oil painting)', '粉笔画(Chalk drawing)', '卡通(Cartoon)', '蜡笔画(Crayon drawing)', '儿童画(Children\'s drawing)', '探索无限(Explore infinity)'], value='探索无限(Explore infinity)', type="index")
204
  gallery = gr.Gallery(
205
  label="Generated images", show_label=False, elem_id="gallery"
206
  ).style(grid=[2, 3], height="auto")
207
  status_text = gr.Textbox(
208
+ label="处理状态(Process status)",
209
  show_label=True,
210
  max_lines=1,
211
  interactive=False