Yaron Koresh commited on
Commit
84aebcc
verified
1 Parent(s): 03ea522

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -174,22 +174,26 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
174
  with gr.Row():
175
  run_button = gr.Button("讛转讞诇讛")
176
  with gr.Row():
177
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
178
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
179
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
180
  with gr.Row():
181
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
182
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
183
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
184
  with gr.Row():
185
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
186
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
187
- result += gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
 
 
 
 
188
 
189
  def ret(idx):
190
  result[idx] = infer(prompt,prompt2)
191
  def rets():
192
- Pool().map(ret,[range(9)])
193
  run_button.click(rets)
194
 
195
  demo.queue().launch()
 
174
  with gr.Row():
175
  run_button = gr.Button("讛转讞诇讛")
176
  with gr.Row():
177
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
178
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
179
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
180
  with gr.Row():
181
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
182
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
183
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
184
  with gr.Row():
185
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
186
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
187
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
188
+ with gr.Row():
189
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
190
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
191
+ result.append(gr.Image(elem_classes="image-container", label="Result", show_label=False, type='filepath', show_share_button=False))
192
 
193
  def ret(idx):
194
  result[idx] = infer(prompt,prompt2)
195
  def rets():
196
+ Pool().map(ret,[range(12)])
197
  run_button.click(rets)
198
 
199
  demo.queue().launch()