Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,8 @@ def enhance_image(image, prompt):
|
|
| 19 |
# Preprocess the image
|
| 20 |
image_path = preprocess_image(image)
|
| 21 |
# Use the client to predict the result
|
| 22 |
-
|
| 23 |
-
return
|
| 24 |
|
| 25 |
# Create the Gradio interface
|
| 26 |
iface = gr.Interface(
|
|
|
|
| 19 |
# Preprocess the image
|
| 20 |
image_path = preprocess_image(image)
|
| 21 |
# Use the client to predict the result
|
| 22 |
+
(padded_image, images.images[0]), padded_image, anyline_image = client.predict(image_path, prompt, api_name="/predict")
|
| 23 |
+
return anyline_image
|
| 24 |
|
| 25 |
# Create the Gradio interface
|
| 26 |
iface = gr.Interface(
|