ginipick commited on
Commit
84b84c4
1 Parent(s): ebecc06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -913,7 +913,7 @@ def create_demo():
913
 
914
  prompt = gr.Textbox(
915
  label="Prompt",
916
- value="A cute and fluffy golden retriever puppy sitting upright, holding a neatly designed white sign with bold, colorful lettering that reads 'Have a Happy Day!' in cheerful fonts."
917
  )
918
 
919
  width = gr.Slider(minimum=128, maximum=2048, step=64, label="Width", value=768)
@@ -944,22 +944,21 @@ def create_demo():
944
  # Examples 섹션 수정
945
  examples = [
946
  # English examples
947
- ["A majestic dragon soaring through clouds at sunset", "English", 768, 768, 3.5, 30],
948
- ["A cyberpunk city street at night with neon signs", "English", 768, 768, 3.5, 30],
949
  # Korean examples
950
- ["달빛이 비치는 고요한 한옥 정원", "Korean", 768, 768, 3.5, 30],
951
- ["벚꽃이 흩날리는 서울의 봄 풍경", "Korean", 768, 768, 3.5, 30],
952
  # Spanish examples
953
- ["Un bailarín de flamenco en las calles de Sevilla", "Spanish", 768, 768, 3.5, 30],
954
- ["Una colorida fiesta mexicana con piñatas", "Spanish", 768, 768, 3.5, 30],
955
  # Chinese examples
956
- ["中国长城在晨雾中若隐若现", "Chinese", 768, 768, 3.5, 30],
957
- ["古老的江南水乡,小桥流水人家", "Chinese", 768, 768, 3.5, 30]
958
  ]
959
 
960
  gr.Examples(
961
  examples=examples,
962
- inputs=[prompt, source_lang, width, height, guidance, inference_steps],
 
 
 
963
  outputs=[output_image, output_seed, translated_prompt],
964
  fn=generate_image,
965
  cache_examples=True
 
913
 
914
  prompt = gr.Textbox(
915
  label="Prompt",
916
+ value="A cute and fluffy golden retriever puppy sitting upright..."
917
  )
918
 
919
  width = gr.Slider(minimum=128, maximum=2048, step=64, label="Width", value=768)
 
944
  # Examples 섹션 수정
945
  examples = [
946
  # English examples
947
+ ["A majestic dragon soaring through clouds at sunset", "English", 768, 768, 3.5, 30, 0, False, None, 0.8, True],
 
948
  # Korean examples
949
+ ["벚꽃이 흩날리는 서울의 풍경", "Korean", 768, 768, 3.5, 30, 0, False, None, 0.8, True],
 
950
  # Spanish examples
951
+ ["Una colorida fiesta mexicana con piñatas", "Spanish", 768, 768, 3.5, 30, 0, False, None, 0.8, True],
 
952
  # Chinese examples
953
+ ["古老的江南水乡,小桥流水人家", "Chinese", 768, 768, 3.5, 30, 0, False, None, 0.8, True]
 
954
  ]
955
 
956
  gr.Examples(
957
  examples=examples,
958
+ inputs=[
959
+ prompt, source_lang, width, height, guidance, inference_steps,
960
+ seed, do_img2img, init_image, image2image_strength, resize_img
961
+ ],
962
  outputs=[output_image, output_seed, translated_prompt],
963
  fn=generate_image,
964
  cache_examples=True