Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -288,18 +288,18 @@ def create_demo():
|
|
288 |
[
|
289 |
'a portrait of a clown',
|
290 |
'example_inputs/unsplash/lhon-karwan-11tbHtK5STE-unsplash.jpg',
|
291 |
-
|
292 |
],
|
293 |
[
|
294 |
'a portrait of a zombie',
|
295 |
'example_inputs/unsplash/baruk-granda-cfLL_jHQ-Iw-unsplash.jpg',
|
296 |
-
|
297 |
]
|
298 |
]
|
299 |
gr.Examples(
|
300 |
examples=example_inps,
|
301 |
-
inputs=[prompt, id_image,
|
302 |
-
|
303 |
)
|
304 |
|
305 |
# Gradio ์ด๋ฒคํธ ์ฐ๊ฒฐ
|
@@ -327,4 +327,5 @@ if __name__ == "__main__":
|
|
327 |
print("Hugging Face Spaces ํ๊ฒฝ์์ ์คํ ์ค์
๋๋ค. GPU ํ ๋น์ ์์ฒญํฉ๋๋ค.")
|
328 |
|
329 |
demo = create_demo()
|
330 |
-
|
|
|
|
288 |
[
|
289 |
'a portrait of a clown',
|
290 |
'example_inputs/unsplash/lhon-karwan-11tbHtK5STE-unsplash.jpg',
|
291 |
+
16, 3.5, "-1", 0.4, "", 3.5, 0.5, 0.8
|
292 |
],
|
293 |
[
|
294 |
'a portrait of a zombie',
|
295 |
'example_inputs/unsplash/baruk-granda-cfLL_jHQ-Iw-unsplash.jpg',
|
296 |
+
16, 3.5, "42", 0.4, "", 3.5, 0.5, 0.8
|
297 |
]
|
298 |
]
|
299 |
gr.Examples(
|
300 |
examples=example_inps,
|
301 |
+
inputs=[prompt, id_image, num_steps, guidance, seed,
|
302 |
+
id_weight, neg_prompt, true_cfg, gamma, eta]
|
303 |
)
|
304 |
|
305 |
# Gradio ์ด๋ฒคํธ ์ฐ๊ฒฐ
|
|
|
327 |
print("Hugging Face Spaces ํ๊ฒฝ์์ ์คํ ์ค์
๋๋ค. GPU ํ ๋น์ ์์ฒญํฉ๋๋ค.")
|
328 |
|
329 |
demo = create_demo()
|
330 |
+
# ํ ์ค์ ์์
|
331 |
+
demo.queue().launch(server_name="0.0.0.0", server_port=args.port)
|