Spaces:
Sleeping
Sleeping
feat: Update gradio_process_image to use uploaded image instead of fixed URL
Browse files
app.py
CHANGED
@@ -8,7 +8,8 @@ client_tile_upscaler = Client(tile_upscaler_url)
|
|
8 |
|
9 |
def gradio_process_image(image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name):
|
10 |
result = client_tile_upscaler.predict(
|
11 |
-
param_0=handle_file(
|
|
|
12 |
param_2=num_inference_steps,
|
13 |
param_3=strength,
|
14 |
param_4=hdr,
|
@@ -17,9 +18,8 @@ def gradio_process_image(image, resolution, num_inference_steps, strength, hdr,
|
|
17 |
param_7=scheduler_name,
|
18 |
api_name="/wrapper"
|
19 |
)
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
with gr.Blocks() as demo:
|
25 |
with gr.Row():
|
|
|
8 |
|
9 |
def gradio_process_image(image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name):
|
10 |
result = client_tile_upscaler.predict(
|
11 |
+
param_0=handle_file(image.name),
|
12 |
+
param_1=resolution,
|
13 |
param_2=num_inference_steps,
|
14 |
param_3=strength,
|
15 |
param_4=hdr,
|
|
|
18 |
param_7=scheduler_name,
|
19 |
api_name="/wrapper"
|
20 |
)
|
21 |
+
return result
|
22 |
+
|
|
|
23 |
|
24 |
with gr.Blocks() as demo:
|
25 |
with gr.Row():
|