Spaces:
Runtime error
Runtime error
Update gradio_demo.py
Browse files- gradio_demo.py +11 -11
gradio_demo.py
CHANGED
@@ -1312,9 +1312,7 @@ with block:
|
|
1312 |
)
|
1313 |
|
1314 |
|
1315 |
-
|
1316 |
-
example_quick_subjects.click(lambda x: x[0], inputs=example_quick_subjects, outputs=prompt, show_progress=False, queue=False)
|
1317 |
-
|
1318 |
# def update_position(background, x_pos, y_pos, scale):
|
1319 |
# """Update composite when position changes"""
|
1320 |
# global original_bg
|
@@ -1499,14 +1497,16 @@ with block:
|
|
1499 |
outputs=[result_gallery], show_progress=True
|
1500 |
)
|
1501 |
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
|
|
|
|
1510 |
|
1511 |
|
1512 |
block.launch(server_name='0.0.0.0', share=False)
|
|
|
1312 |
)
|
1313 |
|
1314 |
|
1315 |
+
|
|
|
|
|
1316 |
# def update_position(background, x_pos, y_pos, scale):
|
1317 |
# """Update composite when position changes"""
|
1318 |
# global original_bg
|
|
|
1497 |
outputs=[result_gallery], show_progress=True
|
1498 |
)
|
1499 |
|
1500 |
+
example_quick_prompts.click(lambda x, y: ', '.join(y.split(', ')[:2] + [x[0]]), inputs=[example_quick_prompts, prompt], outputs=prompt, show_progress=False, queue=False)
|
1501 |
+
example_quick_subjects.click(lambda x: x[0], inputs=example_quick_subjects, outputs=prompt, show_progress=False, queue=False)
|
1502 |
+
|
1503 |
+
# example_prompts.click(
|
1504 |
+
# fn=lambda x: x[0],
|
1505 |
+
# inputs=example_prompts,
|
1506 |
+
# outputs=prompt,
|
1507 |
+
# show_progress=False,
|
1508 |
+
# queue=False
|
1509 |
+
# )
|
1510 |
|
1511 |
|
1512 |
block.launch(server_name='0.0.0.0', share=False)
|