Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,7 +170,9 @@ def process_example(prompt):
|
|
| 170 |
seed=get_random_seed()
|
| 171 |
)
|
| 172 |
|
| 173 |
-
#
|
|
|
|
|
|
|
| 174 |
with gr.Blocks(
|
| 175 |
theme=gr.themes.Soft(),
|
| 176 |
css="""
|
|
@@ -311,14 +313,6 @@ with gr.Blocks(
|
|
| 311 |
gallery_html += "</div>"
|
| 312 |
gr.HTML(gallery_html)
|
| 313 |
|
| 314 |
-
# Examples ์น์
|
| 315 |
-
with gr.Row():
|
| 316 |
-
gr.Examples(
|
| 317 |
-
label="Example Prompts",
|
| 318 |
-
examples=example_prompts,
|
| 319 |
-
inputs=prompt
|
| 320 |
-
)
|
| 321 |
-
|
| 322 |
def update_seed():
|
| 323 |
return get_random_seed()
|
| 324 |
|
|
|
|
| 170 |
seed=get_random_seed()
|
| 171 |
)
|
| 172 |
|
| 173 |
+
# example_prompts ๋ณ์์ process_example ํจ์ ์ ๊ฑฐ
|
| 174 |
+
|
| 175 |
+
# Gradio ์ธํฐํ์ด์ค์์ Examples ์น์
์ ์ ๊ฑฐํ๊ณ ๊ฐค๋ฌ๋ฆฌ๋ง ๋จ๊น
|
| 176 |
with gr.Blocks(
|
| 177 |
theme=gr.themes.Soft(),
|
| 178 |
css="""
|
|
|
|
| 313 |
gallery_html += "</div>"
|
| 314 |
gr.HTML(gallery_html)
|
| 315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
def update_seed():
|
| 317 |
return get_random_seed()
|
| 318 |
|