Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,6 @@ def generate_qwen(
|
|
| 78 |
duration = end_time - start_time
|
| 79 |
|
| 80 |
image_paths = [save_image(img) for img in images]
|
| 81 |
-
|
| 82 |
zip_path = None
|
| 83 |
if zip_images:
|
| 84 |
zip_name = str(uuid.uuid4()) + ".zip"
|
|
@@ -123,7 +122,7 @@ def generate(
|
|
| 123 |
# Examples
|
| 124 |
examples = [
|
| 125 |
"An attractive young woman with blue eyes lying face down on the bed, light white and light amber, timeless beauty, sunrays shine upon it",
|
| 126 |
-
"
|
| 127 |
"A medium-angle shot of a young woman with long brown hair, wearing glasses, standing in front of purple and white lights",
|
| 128 |
"A capybara wearing a suit holding a sign that reads Hello World"
|
| 129 |
]
|
|
@@ -155,12 +154,13 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 155 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 156 |
result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
|
| 157 |
|
| 158 |
-
with gr.
|
| 159 |
aspect_ratio = gr.Dropdown(
|
| 160 |
label="Aspect Ratio",
|
| 161 |
choices=list(aspect_ratios.keys()),
|
| 162 |
value="1:1",
|
| 163 |
)
|
|
|
|
| 164 |
use_negative_prompt = gr.Checkbox(
|
| 165 |
label="Use negative prompt",
|
| 166 |
value=False,
|
|
|
|
| 78 |
duration = end_time - start_time
|
| 79 |
|
| 80 |
image_paths = [save_image(img) for img in images]
|
|
|
|
| 81 |
zip_path = None
|
| 82 |
if zip_images:
|
| 83 |
zip_name = str(uuid.uuid4()) + ".zip"
|
|
|
|
| 122 |
# Examples
|
| 123 |
examples = [
|
| 124 |
"An attractive young woman with blue eyes lying face down on the bed, light white and light amber, timeless beauty, sunrays shine upon it",
|
| 125 |
+
"一幅精致细腻的工笔画,画面中心是一株蓬勃生长的红色牡丹,花朵繁茂,既有盛开的硕大花瓣,也有含苞待放的花蕾,层次丰富,色彩艳丽而不失典雅。牡丹枝叶舒展,叶片浓绿饱满,脉络清晰可见,与红花相映成趣。一只蓝紫色蝴蝶仿佛被画中花朵吸引,停驻在画面中央的一朵盛开牡丹上,流连忘返,蝶翼轻展,细节逼真,仿佛随时会随风飞舞。整幅画作笔触工整严谨,色彩浓郁鲜明,展现出中国传统工笔画的精妙与神韵,画面充满生机与灵动之感。",
|
| 126 |
"A medium-angle shot of a young woman with long brown hair, wearing glasses, standing in front of purple and white lights",
|
| 127 |
"A capybara wearing a suit holding a sign that reads Hello World"
|
| 128 |
]
|
|
|
|
| 154 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 155 |
result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
|
| 156 |
|
| 157 |
+
with gr.Row():
|
| 158 |
aspect_ratio = gr.Dropdown(
|
| 159 |
label="Aspect Ratio",
|
| 160 |
choices=list(aspect_ratios.keys()),
|
| 161 |
value="1:1",
|
| 162 |
)
|
| 163 |
+
with gr.Accordion("Additional Options", open=False):
|
| 164 |
use_negative_prompt = gr.Checkbox(
|
| 165 |
label="Use negative prompt",
|
| 166 |
value=False,
|