Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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")
|