Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 19 |
-
gr.
|
| 20 |
],
|
| 21 |
-
outputs=gr.
|
| 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 |
)
|