AlGe commited on
Commit
032fd3e
·
verified ·
1 Parent(s): 3dac59f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,10 +15,10 @@ def enhance_image(image_path, prompt):
15
  iface = gr.Interface(
16
  fn=enhance_image,
17
  inputs=[
18
- gr.inputs.Image(type="pil", label="Input Image", preprocess=file.preprocess_image, preprocess_kwargs={"image_mode": "RGB"}),
19
- gr.inputs.Textbox(lines=2, placeholder="Enter prompt here", label="Prompt")
20
  ],
21
- outputs=gr.outputs.Image(type="pil", label="Enhanced Image"),
22
  title="Image Enhancement with Text Prompt",
23
  description="Upload an image and provide a text prompt to enhance the image using HiDiffusion SDXL."
24
  )
 
15
  iface = gr.Interface(
16
  fn=enhance_image,
17
  inputs=[
18
+ gr.Image(type="pil", label="Input Image", preprocess=file.preprocess_image, preprocess_kwargs={"image_mode": "RGB"}),
19
+ gr.Textbox(lines=2, placeholder="Enter prompt here", label="Prompt")
20
  ],
21
+ outputs=gr.Image(type="pil", label="Enhanced Image"),
22
  title="Image Enhancement with Text Prompt",
23
  description="Upload an image and provide a text prompt to enhance the image using HiDiffusion SDXL."
24
  )