Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def enhance_image(image, prompt):
|
|
19 |
# Preprocess the image
|
20 |
image_path = preprocess_image(image)
|
21 |
# Use the client to predict the result
|
22 |
-
(padded_image,
|
23 |
return anyline_image
|
24 |
|
25 |
# Create the Gradio interface
|
@@ -34,5 +34,5 @@ iface = gr.Interface(
|
|
34 |
description="Upload an image and provide a text prompt to enhance the image using HiDiffusion SDXL."
|
35 |
)
|
36 |
|
37 |
-
# Launch the
|
38 |
iface.launch()
|
|
|
19 |
# Preprocess the image
|
20 |
image_path = preprocess_image(image)
|
21 |
# Use the client to predict the result
|
22 |
+
(padded_image, image_1), padded_image, anyline_image = client.predict(file(image_path), prompt, api_name="/predict")
|
23 |
return anyline_image
|
24 |
|
25 |
# Create the Gradio interface
|
|
|
34 |
description="Upload an image and provide a text prompt to enhance the image using HiDiffusion SDXL."
|
35 |
)
|
36 |
|
37 |
+
# Launch the interfacegradio_client.file(
|
38 |
iface.launch()
|