fffiloni commited on
Commit
a5ff012
·
verified ·
1 Parent(s): 33c3877

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -49,7 +49,7 @@ def get_clarity_upscale(prompt, img_path, upscale_factor):
49
  img_path, # filepath in 'Image' Image component
50
  prompt, # str in 'Prompt' Textbox component
51
  "", # str in 'Negative Prompt' Textbox component
52
- scale_factor, # float in 'Scale Factor' Number component
53
  1, # float (numeric value between 1 and 50) in 'Dynamic' Slider component
54
  3, # float in 'Creativity' Number component
55
  3, # float in 'Resemblance' Number component
@@ -97,12 +97,14 @@ with gr.Blocks(css=css) as demo:
97
  choices = [
98
  2, 3, 4
99
  ],
100
- value = 2
 
101
  )
102
  upscale_provider = gr.Dropdown(
103
  label = "UpScale Provider",
104
  choices = ["finegrain image enhancer", "clarity upscale"],
105
- value = "clarity upscale"
 
106
  )
107
  submit_btn = gr.Button("Submit", scale=1)
108
  output_res = ImageSlider(label="Flux / Upscaled")
 
49
  img_path, # filepath in 'Image' Image component
50
  prompt, # str in 'Prompt' Textbox component
51
  "", # str in 'Negative Prompt' Textbox component
52
+ upscale_factor, # float in 'Scale Factor' Number component
53
  1, # float (numeric value between 1 and 50) in 'Dynamic' Slider component
54
  3, # float in 'Creativity' Number component
55
  3, # float in 'Resemblance' Number component
 
97
  choices = [
98
  2, 3, 4
99
  ],
100
+ value = 2,
101
+ scale=2
102
  )
103
  upscale_provider = gr.Dropdown(
104
  label = "UpScale Provider",
105
  choices = ["finegrain image enhancer", "clarity upscale"],
106
+ value = "clarity upscale",
107
+ scale=2
108
  )
109
  submit_btn = gr.Button("Submit", scale=1)
110
  output_res = ImageSlider(label="Flux / Upscaled")