Spaces:
Runtime error
Runtime error
feat: Update image type in app.py
Browse filesThe code changes update the image type in the `app.py` file. The `image` variable is now initialized with the `type="filepath"` parameter, allowing the user to input an image file path for refinement.
app.py
CHANGED
@@ -14,7 +14,7 @@ def refine_image(image, prompt, negative_prompt, num_inference_steps, guidance_s
|
|
14 |
return image
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
-
image = gr.Image()
|
18 |
prompt = gr.Textbox(lines=3, label="Prompt")
|
19 |
negative_prompt = gr.Textbox(lines=3, label="Negative Prompt")
|
20 |
num_inference_steps = gr.Slider(
|
|
|
14 |
return image
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
+
image = gr.Image(type="filepath")
|
18 |
prompt = gr.Textbox(lines=3, label="Prompt")
|
19 |
negative_prompt = gr.Textbox(lines=3, label="Negative Prompt")
|
20 |
num_inference_steps = gr.Slider(
|