ZhangYuhan commited on
Commit
32dec53
1 Parent(s): 0401ffb

update serve

Browse files
Files changed (1) hide show
  1. serve/gradio_web_t2s.py +23 -11
serve/gradio_web_t2s.py CHANGED
@@ -57,6 +57,15 @@ Find out who is the 🥇conditional image generation models! More models are goi
57
  model_description_md = get_model_description_md(model_list)
58
  gr.Markdown(model_description_md, elem_id="model_description_markdown")
59
  with gr.Row():
 
 
 
 
 
 
 
 
 
60
  with gr.Column():
61
  normal_left = gr.Image(width=512, label = "Normal A", show_download_button=True)
62
  rgb_left = gr.Image(width=512, label = "RGB A", show_download_button=True)
@@ -65,6 +74,8 @@ Find out who is the 🥇conditional image generation models! More models are goi
65
  rgb_right = gr.Image(width=512, label = "RGB B", show_download_button=True,)
66
 
67
  with gr.Row():
 
 
68
  with gr.Column():
69
  model_selector_left =gr.Markdown("", visible=False)
70
  with gr.Column():
@@ -137,21 +148,22 @@ Find out who is the 🥇conditional image generation models! More models are goi
137
  value="👎 Both are bad", visible=False, interactive=False
138
  )
139
 
140
- with gr.Row():
141
- textbox = gr.Textbox(
142
- show_label=False,
143
- placeholder="👉 Enter your prompt or Sample a random prompt, and press ENTER",
144
- container=True,
145
- elem_id="input_box",
146
- interactive=False, ## only support offline
147
- )
148
- sample_btn = gr.Button(value="🎲 Sample", variant="primary", scale=0)
149
- send_btn = gr.Button(value="📤 Send", variant="primary", scale=0)
150
 
151
  with gr.Row():
152
  clear_btn = gr.Button(value="🗑️ Clear", interactive=False)
153
- regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=False)
154
  share_btn = gr.Button(value="📷 Share")
 
 
155
 
156
  gr.Markdown(acknowledgment_md, elem_id="ack_markdown")
157
 
 
57
  model_description_md = get_model_description_md(model_list)
58
  gr.Markdown(model_description_md, elem_id="model_description_markdown")
59
  with gr.Row():
60
+ with gr.Column():
61
+ textbox = gr.Textbox(
62
+ show_label=False,
63
+ placeholder="👉 Enter your prompt or Sample a random prompt, and press ENTER",
64
+ container=True,
65
+ elem_id="input_box",
66
+ interactive=False, ## only support offline
67
+ )
68
+ sample_btn = gr.Button(value="🎲 Sample", variant="primary", scale=0)
69
  with gr.Column():
70
  normal_left = gr.Image(width=512, label = "Normal A", show_download_button=True)
71
  rgb_left = gr.Image(width=512, label = "RGB A", show_download_button=True)
 
74
  rgb_right = gr.Image(width=512, label = "RGB B", show_download_button=True,)
75
 
76
  with gr.Row():
77
+ with gr.Column():
78
+ gr.Markdown("", visible=True)
79
  with gr.Column():
80
  model_selector_left =gr.Markdown("", visible=False)
81
  with gr.Column():
 
148
  value="👎 Both are bad", visible=False, interactive=False
149
  )
150
 
151
+ # with gr.Row():
152
+ # textbox = gr.Textbox(
153
+ # show_label=False,
154
+ # placeholder="👉 Enter your prompt or Sample a random prompt, and press ENTER",
155
+ # container=True,
156
+ # elem_id="input_box",
157
+ # interactive=False, ## only support offline
158
+ # )
159
+ # sample_btn = gr.Button(value="🎲 Sample", variant="primary", scale=0)
160
+ # send_btn = gr.Button(value="📤 Send", variant="primary", scale=0)
161
 
162
  with gr.Row():
163
  clear_btn = gr.Button(value="🗑️ Clear", interactive=False)
 
164
  share_btn = gr.Button(value="📷 Share")
165
+ regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=False)
166
+ send_btn = gr.Button(value="📤 Send", variant="primary", scale=0)
167
 
168
  gr.Markdown(acknowledgment_md, elem_id="ack_markdown")
169