Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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
|
178 |
-
result
|
179 |
-
result
|
180 |
with gr.Row():
|
181 |
-
result
|
182 |
-
result
|
183 |
-
result
|
184 |
with gr.Row():
|
185 |
-
result
|
186 |
-
result
|
187 |
-
result
|
|
|
|
|
|
|
|
|
188 |
|
189 |
def ret(idx):
|
190 |
result[idx] = infer(prompt,prompt2)
|
191 |
def rets():
|
192 |
-
Pool().map(ret,[range(
|
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()
|