Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,6 @@ def process_image(prompt, image, style, upscale_factor, inpaint):
|
|
| 28 |
print(f"Inpaint: {inpaint}")
|
| 29 |
|
| 30 |
# Example placeholder logic for using the pipeline
|
| 31 |
-
# Replace with actual pipeline logic based on selected style
|
| 32 |
if inpaint and inpaint_model:
|
| 33 |
result = inpaint_model(prompt=prompt, image=image, guidance_scale=7.5)
|
| 34 |
else:
|
|
@@ -55,7 +54,7 @@ with gr.Blocks() as demo:
|
|
| 55 |
upscale_input = gr.Slider(minimum=1, maximum=4, step=1, label="Upscale Factor")
|
| 56 |
inpaint_input = gr.Checkbox(label="Enable Inpainting")
|
| 57 |
|
| 58 |
-
output = gr.Image(label="Generated Image")
|
| 59 |
|
| 60 |
generate_button = gr.Button("Generate Image")
|
| 61 |
generate_button.click(
|
|
|
|
| 28 |
print(f"Inpaint: {inpaint}")
|
| 29 |
|
| 30 |
# Example placeholder logic for using the pipeline
|
|
|
|
| 31 |
if inpaint and inpaint_model:
|
| 32 |
result = inpaint_model(prompt=prompt, image=image, guidance_scale=7.5)
|
| 33 |
else:
|
|
|
|
| 54 |
upscale_input = gr.Slider(minimum=1, maximum=4, step=1, label="Upscale Factor")
|
| 55 |
inpaint_input = gr.Checkbox(label="Enable Inpainting")
|
| 56 |
|
| 57 |
+
output = gr.Image(label="Generated Image", type="pil")
|
| 58 |
|
| 59 |
generate_button = gr.Button("Generate Image")
|
| 60 |
generate_button.click(
|