Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -297,9 +297,9 @@ with gr.Blocks() as demo:
|
|
297 |
run = gr.Button('Generate')
|
298 |
|
299 |
with gr.Column():
|
300 |
-
result0 = gr.Gallery([(None,"Initial Word")
|
301 |
-
|
302 |
-
|
303 |
|
304 |
|
305 |
with gr.Row():
|
@@ -343,9 +343,9 @@ with gr.Blocks() as demo:
|
|
343 |
num_steps
|
344 |
],
|
345 |
outputs=[
|
346 |
-
result0
|
347 |
-
|
348 |
-
|
349 |
],
|
350 |
fn=run_main_ex,
|
351 |
cache_examples=True)
|
@@ -361,9 +361,9 @@ with gr.Blocks() as demo:
|
|
361 |
]
|
362 |
|
363 |
outputs = [
|
364 |
-
result0
|
365 |
-
|
366 |
-
|
367 |
]
|
368 |
|
369 |
run.click(fn=run_main_app, inputs=inputs, outputs=outputs, concurrency_limit=2)
|
|
|
297 |
run = gr.Button('Generate')
|
298 |
|
299 |
with gr.Column():
|
300 |
+
result0 = gr.Gallery([(None,"Initial Word")], label="Initial Word")#gr.HTML("""<style>{width: 333px; height: 333px;}</style>""",label="Initial Word") #gr.Image(type="filepath", label="Initial Word",height=333)
|
301 |
+
result1 = gr.Gallery([(None,"Optimization Process")], label="Optimization Process")#gr.Image(type="filepath", label="Optimization Process",height=100)
|
302 |
+
result2 = gr.Gallery([(None,"Final Result")], label="Final Result")#gr.HTML(label="Final Result") #gr.Image(type="filepath", label="Final Result",visible=False,height=333)
|
303 |
|
304 |
|
305 |
with gr.Row():
|
|
|
343 |
num_steps
|
344 |
],
|
345 |
outputs=[
|
346 |
+
result0,
|
347 |
+
result1,
|
348 |
+
result2
|
349 |
],
|
350 |
fn=run_main_ex,
|
351 |
cache_examples=True)
|
|
|
361 |
]
|
362 |
|
363 |
outputs = [
|
364 |
+
result0,
|
365 |
+
result1,
|
366 |
+
result2
|
367 |
]
|
368 |
|
369 |
run.click(fn=run_main_app, inputs=inputs, outputs=outputs, concurrency_limit=2)
|