Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,8 +44,7 @@ async def enhance_image(
|
|
| 44 |
img_byte_arr = BytesIO()
|
| 45 |
enhanced_image.save(img_byte_arr, format='PNG')
|
| 46 |
img_byte_arr.seek(0)
|
| 47 |
-
|
| 48 |
-
# Stream the enhanced image back to the client
|
| 49 |
return StreamingResponse(img_byte_arr, media_type="image/png")
|
| 50 |
|
| 51 |
except Exception as e:
|
|
|
|
| 44 |
img_byte_arr = BytesIO()
|
| 45 |
enhanced_image.save(img_byte_arr, format='PNG')
|
| 46 |
img_byte_arr.seek(0)
|
| 47 |
+
|
|
|
|
| 48 |
return StreamingResponse(img_byte_arr, media_type="image/png")
|
| 49 |
|
| 50 |
except Exception as e:
|