openfree commited on
Commit
7ebafeb
ยท
verified ยท
1 Parent(s): 9066da8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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
- 0.5, 3.5, "-1", 16, 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
- 0.4, 3.5, "42", 16, 0.4, "", 3.5, 0.5, 0.8
297
  ]
298
  ]
299
  gr.Examples(
300
  examples=example_inps,
301
- inputs=[prompt, id_image, id_weight, guidance, seed, num_steps,
302
- id_weight, neg_prompt, true_cfg, gamma, eta]
303
  )
304
 
305
  # Gradio ์ด๋ฒคํŠธ ์—ฐ๊ฒฐ
@@ -327,4 +327,5 @@ if __name__ == "__main__":
327
  print("Hugging Face Spaces ํ™˜๊ฒฝ์—์„œ ์‹คํ–‰ ์ค‘์ž…๋‹ˆ๋‹ค. GPU ํ• ๋‹น์„ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค.")
328
 
329
  demo = create_demo()
330
- demo.queue(concurrency_count=1).launch(server_name="0.0.0.0", server_port=args.port)
 
 
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)