Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -339,6 +339,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
339 |
trial_id = gr.Textbox(visible=False)
|
340 |
output_buf = gr.State()
|
341 |
|
|
|
342 |
# Example images
|
343 |
with gr.Row():
|
344 |
examples = gr.Examples(
|
@@ -350,8 +351,11 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
350 |
fn=preprocess_image,
|
351 |
outputs=[trial_id, image_prompt],
|
352 |
run_on_click=True,
|
353 |
-
examples_per_page=
|
|
|
354 |
)
|
|
|
|
|
355 |
|
356 |
# Handlers
|
357 |
image_prompt.upload(
|
@@ -413,6 +417,5 @@ if __name__ == "__main__":
|
|
413 |
demo.queue(max_size=3).launch(
|
414 |
share=True,
|
415 |
max_threads=1,
|
416 |
-
show_error=True
|
417 |
-
|
418 |
-
)
|
|
|
339 |
trial_id = gr.Textbox(visible=False)
|
340 |
output_buf = gr.State()
|
341 |
|
342 |
+
|
343 |
# Example images
|
344 |
with gr.Row():
|
345 |
examples = gr.Examples(
|
|
|
351 |
fn=preprocess_image,
|
352 |
outputs=[trial_id, image_prompt],
|
353 |
run_on_click=True,
|
354 |
+
examples_per_page=32, # ์์ ์ ๊ฐ์
|
355 |
+
cache_examples=False # ์์ ์บ์ฑ ๋นํ์ฑํ๋ Examples ์ปดํฌ๋ํธ์์ ์ค์
|
356 |
)
|
357 |
+
|
358 |
+
|
359 |
|
360 |
# Handlers
|
361 |
image_prompt.upload(
|
|
|
417 |
demo.queue(max_size=3).launch(
|
418 |
share=True,
|
419 |
max_threads=1,
|
420 |
+
show_error=True
|
421 |
+
)
|
|