NightRaven109 commited on
Commit
6c2d38d
·
verified ·
1 Parent(s): 0f15bd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +57 -57
app.py CHANGED
@@ -221,64 +221,64 @@ with gr.Blocks(title="Controllable Conditional Super-Resolution") as demo:
221
  with gr.Column():
222
  output_image = gr.Image(label="Generated Image")
223
 
224
- # Define example data
225
- EXAMPLES = [
226
- [
227
- "examples/1.png", # Input image path
228
- "clean, texture, high-resolution, 8k", # Prompt
229
- "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed", # Negative prompt
230
- 3.0, # Guidance scale
231
- 1.0, # Conditioning scale
232
- 6, # Num steps
233
- 42, # Seed
234
- 4, # Upscale factor
235
- "wavelet" # Color fix method
236
- ],
237
- [
238
- "examples/22.png",
239
- "clean, texture, high-resolution, 8k",
240
- "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
241
- 3.0,
242
- 1.0,
243
- 6,
244
- 123,
245
- 4,
246
- "wavelet"
247
- ],
248
- [
249
- "examples/4.png",
250
- "clean, texture, high-resolution, 8k",
251
- "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
252
- 3.0,
253
- 1.0,
254
- 6,
255
- 123,
256
- 4,
257
- "wavelet"
258
- ],
259
- [
260
- "examples/9D03D7F206775949.png.png",
261
- "clean, texture, high-resolution, 8k",
262
- "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
263
- 3.0,
264
- 1.0,
265
- 6,
266
- 123,
267
- 4,
268
- "wavelet"
269
- ],
270
- [
271
- "examples/3.png",
272
- "clean, texture, high-resolution, 8k",
273
- "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
274
- 2.5,
275
- 1.0,
276
- 6,
277
- 456,
278
- 4,
279
- "wavelet"
 
280
  ]
281
- ]
282
 
283
  # Add gallery of examples
284
  with gr.Row():
 
221
  with gr.Column():
222
  output_image = gr.Image(label="Generated Image")
223
 
224
+ # Define example data
225
+ examples = [
226
+ [
227
+ "examples/1.png", # Input image path
228
+ "clean, texture, high-resolution, 8k", # Prompt
229
+ "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed", # Negative prompt
230
+ 3.0, # Guidance scale
231
+ 1.0, # Conditioning scale
232
+ 6, # Num steps
233
+ 42, # Seed
234
+ 4, # Upscale factor
235
+ "wavelet" # Color fix method
236
+ ],
237
+ [
238
+ "examples/22.png",
239
+ "clean, texture, high-resolution, 8k",
240
+ "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
241
+ 3.0,
242
+ 1.0,
243
+ 6,
244
+ 123,
245
+ 4,
246
+ "wavelet"
247
+ ],
248
+ [
249
+ "examples/4.png",
250
+ "clean, texture, high-resolution, 8k",
251
+ "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
252
+ 3.0,
253
+ 1.0,
254
+ 6,
255
+ 123,
256
+ 4,
257
+ "wavelet"
258
+ ],
259
+ [
260
+ "examples/9D03D7F206775949.png.png",
261
+ "clean, texture, high-resolution, 8k",
262
+ "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
263
+ 3.0,
264
+ 1.0,
265
+ 6,
266
+ 123,
267
+ 4,
268
+ "wavelet"
269
+ ],
270
+ [
271
+ "examples/3.png",
272
+ "clean, texture, high-resolution, 8k",
273
+ "blurry, dotted, noise, raster lines, unclear, lowres, over-smoothed",
274
+ 2.5,
275
+ 1.0,
276
+ 6,
277
+ 456,
278
+ 4,
279
+ "wavelet"
280
+ ]
281
  ]
 
282
 
283
  # Add gallery of examples
284
  with gr.Row():