aqlanhadi commited on
Commit
f0026d6
·
1 Parent(s): f8e2525

remove required inputs

Browse files
Files changed (1) hide show
  1. app.py +7 -32
app.py CHANGED
@@ -66,11 +66,7 @@ def inference(
66
  qr_code_content: str,
67
  prompt: str = "Sky view of highly aesthetic, ancient greek thermal baths in beautiful nature",
68
  negative_prompt: str = "ugly, disfigured, low quality, blurry, nsfw",
69
- guidance_scale: float = 7.5,
70
- controlnet_conditioning_scale: float = 1.5,
71
- strength: float = 0.9,
72
- seed: int = 2523992465,
73
- sampler = "DPM++ Karras SDE",
74
  ):
75
  if prompt is None or prompt == "":
76
  raise gr.Error("Prompt is required")
@@ -80,6 +76,11 @@ def inference(
80
 
81
  pipe.scheduler = SAMPLER_MAP[sampler](pipe.scheduler.config)
82
 
 
 
 
 
 
83
  init_image = None
84
  qrcode_image = None
85
  use_qr_code_as_init_image = True
@@ -136,33 +137,7 @@ generator = gr.Interface(
136
  gr.Textbox(
137
  label="Negative Prompt",
138
  value="ugly, disfigured, low quality, blurry, nsfw",
139
- ),
140
- gr.Slider(
141
- minimum=0.0,
142
- maximum=10.0,
143
- step=0.01,
144
- value=1.1,
145
- label="Controlnet Guidance Scale",
146
- ),
147
- gr.Slider(
148
- minimum=0.0,
149
- maximum=5.0,
150
- step=0.01,
151
- value=1.1,
152
- label="Controlnet Conditioning Scale",
153
- ),
154
- gr.Slider(
155
- minimum=0.0, maximum=1.0, step=0.01, value=0.9, label="Strength"
156
- ),
157
- gr.Slider(
158
- minimum=-1,
159
- maximum=9999999999,
160
- step=1,
161
- value=2313123,
162
- label="Seed",
163
- randomize=True,
164
- ),
165
- gr.Dropdown(choices=list(SAMPLER_MAP.keys()), value="DPM++ Karras SDE", label="Sampler"),
166
  ],
167
  outputs="image"
168
  )
 
66
  qr_code_content: str,
67
  prompt: str = "Sky view of highly aesthetic, ancient greek thermal baths in beautiful nature",
68
  negative_prompt: str = "ugly, disfigured, low quality, blurry, nsfw",
69
+
 
 
 
 
70
  ):
71
  if prompt is None or prompt == "":
72
  raise gr.Error("Prompt is required")
 
76
 
77
  pipe.scheduler = SAMPLER_MAP[sampler](pipe.scheduler.config)
78
 
79
+ guidance_scale = 7.5,
80
+ controlnet_conditioning_scale = 1.5,
81
+ strength = 0.9,
82
+ seed = 2523992465,
83
+ sampler = "DPM++ Karras SDE",
84
  init_image = None
85
  qrcode_image = None
86
  use_qr_code_as_init_image = True
 
137
  gr.Textbox(
138
  label="Negative Prompt",
139
  value="ugly, disfigured, low quality, blurry, nsfw",
140
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  ],
142
  outputs="image"
143
  )