Himanshu-AT commited on
Commit
c5a89c3
·
1 Parent(s): 33b3b46

refactor input components in app.py to remove unnecessary info labels

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -162,11 +162,11 @@ with demo:
162
  fn=generate_image,
163
  inputs=[
164
  gr.Image(type="pil", width=512),
165
- gr.Textbox(lines=2, label="text", info="Could be something as simple as 'this character playing soccer'."),
166
- gr.Checkbox(label="Gemini prompt", value=True, info="Use Gemini to enhance the prompt. This is recommended for most cases, unless you have a specific prompt similar to the examples in mind."),
167
- gr.Slider(minimum=1.0, maximum=6.0, step=0.5, value=3.5, label="guidance scale", info="Tip: start with 3.5, then gradually increase if the consistency is consistently off"),
168
- gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.5, label="real guidance scale for image", info="Tip: increase if the image is not consistent"),
169
- gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.0, label="real guidance scale for prompt", info="Tip: increase if the prompt is not consistent"),
170
  ],
171
  outputs=gr.Image(type="pil"),
172
  live=False,
@@ -182,12 +182,12 @@ with demo:
182
  garment_iface = gr.Interface(
183
  fn=generate_with_garment_interface,
184
  inputs=[
185
- gr.Image(type="pil", width=512, label="Garment Image", info="Upload an image of the garment you want to keep in the generated output"),
186
- gr.Textbox(lines=2, label="Model and Background Description", info="Describe the model and setting you want the garment to appear in, e.g., 'A tall model on a beach at sunset'"),
187
- gr.Checkbox(label="Enhance Prompt", value=True, info="Use Gemini to enhance the prompt with detailed garment description"),
188
- gr.Slider(minimum=1.0, maximum=6.0, step=0.5, value=3.5, label="guidance scale", info="Controls overall adherence to the prompt"),
189
- gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.5, label="garment fidelity", info="Controls how closely the output matches the original garment - higher values preserve more details"),
190
- gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.0, label="prompt adherence", info="Controls how closely the output matches the text prompt for model and background"),
191
  ],
192
  outputs=gr.Image(type="pil"),
193
  live=False,
 
162
  fn=generate_image,
163
  inputs=[
164
  gr.Image(type="pil", width=512),
165
+ gr.Textbox(lines=2, label="text"),
166
+ gr.Checkbox(label="Gemini prompt", value=True),
167
+ gr.Slider(minimum=1.0, maximum=6.0, step=0.5, value=3.5, label="guidance scale"),
168
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.5, label="real guidance scale for image"),
169
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.0, label="real guidance scale for prompt"),
170
  ],
171
  outputs=gr.Image(type="pil"),
172
  live=False,
 
182
  garment_iface = gr.Interface(
183
  fn=generate_with_garment_interface,
184
  inputs=[
185
+ gr.Image(type="pil", width=512, label="Garment Image"),
186
+ gr.Textbox(lines=2, label="Model and Background Description"),
187
+ gr.Checkbox(label="Enhance Prompt", value=True),
188
+ gr.Slider(minimum=1.0, maximum=6.0, step=0.5, value=3.5, label="guidance scale"),
189
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.5, label="garment fidelity"),
190
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.0, label="prompt adherence"),
191
  ],
192
  outputs=gr.Image(type="pil"),
193
  live=False,