multimodalart HF Staff commited on
Commit
8acf762
·
verified ·
1 Parent(s): 00a226c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -85,7 +85,7 @@ with gr.Blocks(css=css) as demo:
85
  with gr.Column(elem_id="col-container"):
86
  # Title and description for the demo.
87
  gr.Markdown(f"""# Qwen-Image Text-to-Image
88
- Gradio demo for [Qwen-Image](https://huggingface.co/Qwen/Qwen-Image), a powerful text-to-image model from the Qwen (通义千问) team at Alibaba.
89
  """)
90
 
91
  with gr.Row():
@@ -99,18 +99,16 @@ Gradio demo for [Qwen-Image](https://huggingface.co/Qwen/Qwen-Image), a powerful
99
  )
100
  # The "Run" button.
101
  run_button = gr.Button("Run", scale=0)
102
-
103
- # Negative prompt input.
 
 
104
  negative_prompt = gr.Text(
105
  label="Negative Prompt",
106
  max_lines=1,
107
  placeholder="Enter a negative prompt",
108
  value="text, watermark, copyright, blurry, low resolution",
109
  )
110
-
111
- # Display area for the generated image.
112
- result = gr.Image(label="Result", show_label=False)
113
-
114
  # Accordion for advanced settings.
115
  with gr.Accordion("Advanced Settings", open=False):
116
 
@@ -146,7 +144,7 @@ Gradio demo for [Qwen-Image](https://huggingface.co/Qwen/Qwen-Image), a powerful
146
  minimum=1,
147
  maximum=50,
148
  step=1,
149
- value=4,
150
  )
151
  true_cfg_scale = gr.Slider(
152
  label="CFG Scale",
 
85
  with gr.Column(elem_id="col-container"):
86
  # Title and description for the demo.
87
  gr.Markdown(f"""# Qwen-Image Text-to-Image
88
+ Gradio demo for [Qwen-Image](https://huggingface.co/Qwen/Qwen-Image), a powerful text-to-image model from the Qwen team at Alibaba.
89
  """)
90
 
91
  with gr.Row():
 
99
  )
100
  # The "Run" button.
101
  run_button = gr.Button("Run", scale=0)
102
+
103
+
104
+ result = gr.Image(label="Result", show_label=False)
105
+
106
  negative_prompt = gr.Text(
107
  label="Negative Prompt",
108
  max_lines=1,
109
  placeholder="Enter a negative prompt",
110
  value="text, watermark, copyright, blurry, low resolution",
111
  )
 
 
 
 
112
  # Accordion for advanced settings.
113
  with gr.Accordion("Advanced Settings", open=False):
114
 
 
144
  minimum=1,
145
  maximum=50,
146
  step=1,
147
+ value=28,
148
  )
149
  true_cfg_scale = gr.Slider(
150
  label="CFG Scale",