Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 |
-
["
|
951 |
-
["벚꽃이 흩날리는 서울의 봄 풍경", "Korean", 768, 768, 3.5, 30],
|
952 |
# Spanish examples
|
953 |
-
["
|
954 |
-
["Una colorida fiesta mexicana con piñatas", "Spanish", 768, 768, 3.5, 30],
|
955 |
# Chinese examples
|
956 |
-
["
|
957 |
-
["古老的江南水乡,小桥流水人家", "Chinese", 768, 768, 3.5, 30]
|
958 |
]
|
959 |
|
960 |
gr.Examples(
|
961 |
examples=examples,
|
962 |
-
inputs=[
|
|
|
|
|
|
|
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
|