Kalhar.Pandya commited on
Commit
1b4e3b5
·
1 Parent(s): 0e9a884
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -289,7 +289,7 @@ iface = gr.Interface(
289
  cache_examples=True,
290
  inputs=[
291
  gr.Image(type="pil", label="Upload Your Image"),
292
- gr.Slider(minimum=1, maximum=32, step=1, value=10,
293
  label="Block Size (px) for Feature Extraction"),
294
  gr.Slider(minimum=0.1, maximum=1.0, step=0.1, value=1.0,
295
  label="Output Scale (0.1 to 1.0)"),
@@ -318,7 +318,7 @@ iface = gr.Interface(
318
  # -- SAMPLE (1).png --
319
  [
320
  "samples/sample (1).png",
321
- 10,
322
  0.1, # Output Scale set to 0.1
323
  5.0, # Priority for Average Color only
324
  0.0, # HSV
@@ -328,7 +328,7 @@ iface = gr.Interface(
328
  ],
329
  [
330
  "samples/sample (1).png",
331
- 10,
332
  0.1, # Output Scale set to 0.1
333
  0.0, # Priority for Average Color
334
  5.0, # Priority for HSV only
@@ -338,7 +338,7 @@ iface = gr.Interface(
338
  ],
339
  [
340
  "samples/sample (1).png",
341
- 10,
342
  0.1, # Output Scale set to 0.1
343
  3.5, # Combination: avg=3.5, hsv=5, rest=0.2
344
  5.0,
@@ -349,7 +349,7 @@ iface = gr.Interface(
349
  # -- SAMPLE (2).jpg --
350
  [
351
  "samples/sample (2).jpg",
352
- 10,
353
  0.1,
354
  5.0,
355
  0.0,
@@ -359,7 +359,7 @@ iface = gr.Interface(
359
  ],
360
  [
361
  "samples/sample (2).jpg",
362
- 10,
363
  0.1,
364
  0.0,
365
  5.0,
@@ -369,7 +369,7 @@ iface = gr.Interface(
369
  ],
370
  [
371
  "samples/sample (2).jpg",
372
- 10,
373
  0.1,
374
  3.5,
375
  5.0,
@@ -380,7 +380,7 @@ iface = gr.Interface(
380
  # -- SAMPLE (3).jpg --
381
  [
382
  "samples/sample (3).jpg",
383
- 10,
384
  0.1,
385
  5.0,
386
  0.0,
@@ -390,7 +390,7 @@ iface = gr.Interface(
390
  ],
391
  [
392
  "samples/sample (3).jpg",
393
- 10,
394
  0.1,
395
  0.0,
396
  5.0,
@@ -400,7 +400,7 @@ iface = gr.Interface(
400
  ],
401
  [
402
  "samples/sample (3).jpg",
403
- 10,
404
  0.1,
405
  3.5,
406
  5.0,
@@ -411,7 +411,7 @@ iface = gr.Interface(
411
  # -- SAMPLE (4).webp --
412
  [
413
  "samples/sample (4).webp",
414
- 10,
415
  0.1,
416
  5.0,
417
  0.0,
@@ -421,7 +421,7 @@ iface = gr.Interface(
421
  ],
422
  [
423
  "samples/sample (4).webp",
424
- 10,
425
  0.1,
426
  0.0,
427
  5.0,
@@ -431,7 +431,7 @@ iface = gr.Interface(
431
  ],
432
  [
433
  "samples/sample (4).webp",
434
- 10,
435
  0.1,
436
  3.5,
437
  5.0,
@@ -442,7 +442,7 @@ iface = gr.Interface(
442
  # -- SAMPLE (5).jpg --
443
  [
444
  "samples/sample (5).jpg",
445
- 10,
446
  0.1,
447
  5.0,
448
  0.0,
@@ -452,7 +452,7 @@ iface = gr.Interface(
452
  ],
453
  [
454
  "samples/sample (5).jpg",
455
- 10,
456
  0.1,
457
  0.0,
458
  5.0,
@@ -462,7 +462,7 @@ iface = gr.Interface(
462
  ],
463
  [
464
  "samples/sample (5).jpg",
465
- 10,
466
  0.1,
467
  3.5,
468
  5.0,
 
289
  cache_examples=True,
290
  inputs=[
291
  gr.Image(type="pil", label="Upload Your Image"),
292
+ gr.Slider(minimum=1, maximum=32, step=1, value=20,
293
  label="Block Size (px) for Feature Extraction"),
294
  gr.Slider(minimum=0.1, maximum=1.0, step=0.1, value=1.0,
295
  label="Output Scale (0.1 to 1.0)"),
 
318
  # -- SAMPLE (1).png --
319
  [
320
  "samples/sample (1).png",
321
+ 20,
322
  0.1, # Output Scale set to 0.1
323
  5.0, # Priority for Average Color only
324
  0.0, # HSV
 
328
  ],
329
  [
330
  "samples/sample (1).png",
331
+ 20,
332
  0.1, # Output Scale set to 0.1
333
  0.0, # Priority for Average Color
334
  5.0, # Priority for HSV only
 
338
  ],
339
  [
340
  "samples/sample (1).png",
341
+ 20,
342
  0.1, # Output Scale set to 0.1
343
  3.5, # Combination: avg=3.5, hsv=5, rest=0.2
344
  5.0,
 
349
  # -- SAMPLE (2).jpg --
350
  [
351
  "samples/sample (2).jpg",
352
+ 20,
353
  0.1,
354
  5.0,
355
  0.0,
 
359
  ],
360
  [
361
  "samples/sample (2).jpg",
362
+ 20,
363
  0.1,
364
  0.0,
365
  5.0,
 
369
  ],
370
  [
371
  "samples/sample (2).jpg",
372
+ 20,
373
  0.1,
374
  3.5,
375
  5.0,
 
380
  # -- SAMPLE (3).jpg --
381
  [
382
  "samples/sample (3).jpg",
383
+ 20,
384
  0.1,
385
  5.0,
386
  0.0,
 
390
  ],
391
  [
392
  "samples/sample (3).jpg",
393
+ 20,
394
  0.1,
395
  0.0,
396
  5.0,
 
400
  ],
401
  [
402
  "samples/sample (3).jpg",
403
+ 20,
404
  0.1,
405
  3.5,
406
  5.0,
 
411
  # -- SAMPLE (4).webp --
412
  [
413
  "samples/sample (4).webp",
414
+ 20,
415
  0.1,
416
  5.0,
417
  0.0,
 
421
  ],
422
  [
423
  "samples/sample (4).webp",
424
+ 20,
425
  0.1,
426
  0.0,
427
  5.0,
 
431
  ],
432
  [
433
  "samples/sample (4).webp",
434
+ 20,
435
  0.1,
436
  3.5,
437
  5.0,
 
442
  # -- SAMPLE (5).jpg --
443
  [
444
  "samples/sample (5).jpg",
445
+ 20,
446
  0.1,
447
  5.0,
448
  0.0,
 
452
  ],
453
  [
454
  "samples/sample (5).jpg",
455
+ 20,
456
  0.1,
457
  0.0,
458
  5.0,
 
462
  ],
463
  [
464
  "samples/sample (5).jpg",
465
+ 20,
466
  0.1,
467
  3.5,
468
  5.0,