ysharma HF staff commited on
Commit
79a74e1
·
1 Parent(s): 4f1896d

upd layout

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -45,8 +45,10 @@ with demo:
45
  gr.Markdown("Testing Diffusio models. STILL VERY MUCH WORK IN PROGRESS !!!!!!!!")
46
 
47
  with gr.Row():
48
- in_text_prompt = gr.Textbox(label="Enter English text here")
49
- out_text_chinese = gr.Textbox(label="Text in Simplified Chinese")
 
 
50
  b1 = gr.Button("English to Simplified Chinese")
51
 
52
  #s1 = gr.Slider(label='samples', value=4, visible=False)
@@ -59,10 +61,13 @@ with demo:
59
  in_language_second = gr.Dropdown(visible=False, value= 'zho_Hans') #'Chinese (Simplified)'
60
 
61
  with gr.Row():
62
- in_styles = gr.Dropdown(['水彩-WaterColor', '油画-OilPainting', '粉笔画-Painting', '卡通-Cartoon', '蜡笔画-Pencils', '儿童画-ChildrensPaintings', '探索无限-ExploringTheInfinite'])
 
 
 
63
  out_ernie = gr.Image(type="pil", label="Ernie output for the given prompt")
64
  #out_gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery") #.style(grid=[2, 3], height="auto")
65
- b2 = gr.Button("Generate Images from Ernie")
66
 
67
  #out_sd = gr.Image(type="pil", label="SD output for the given prompt")
68
  #b3 = gr.Button("Generate Images from SD")
 
45
  gr.Markdown("Testing Diffusio models. STILL VERY MUCH WORK IN PROGRESS !!!!!!!!")
46
 
47
  with gr.Row():
48
+ with gr.Column():
49
+ in_text_prompt = gr.Textbox(label="Enter English text here")
50
+ out_text_chinese = gr.Textbox(label="Text in Simplified Chinese")
51
+
52
  b1 = gr.Button("English to Simplified Chinese")
53
 
54
  #s1 = gr.Slider(label='samples', value=4, visible=False)
 
61
  in_language_second = gr.Dropdown(visible=False, value= 'zho_Hans') #'Chinese (Simplified)'
62
 
63
  with gr.Row():
64
+ with gr.Column():
65
+ in_styles = gr.Dropdown(['水彩-WaterColor', '油画-OilPainting', '粉笔画-Painting', '卡通-Cartoon', '蜡笔画-Pencils', '儿童画-ChildrensPaintings', '探索无限-ExploringTheInfinite'])
66
+ b2 = gr.Button("Generate Images from Ernie")
67
+
68
  out_ernie = gr.Image(type="pil", label="Ernie output for the given prompt")
69
  #out_gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery") #.style(grid=[2, 3], height="auto")
70
+
71
 
72
  #out_sd = gr.Image(type="pil", label="SD output for the given prompt")
73
  #b3 = gr.Button("Generate Images from SD")