Lisandro commited on
Commit
53df086
·
1 Parent(s): 2b36db2

feat: Update image type in app.py

Browse files

The 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.

Files changed (1) hide show
  1. app.py +1 -1
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(