Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ async def sse_proxy(session_hash: str, request: Request):
|
|
| 122 |
"""Proxy Server-Sent Events for the virtual try-on process."""
|
| 123 |
return EventSourceResponse(event_generator(session_hash))
|
| 124 |
|
| 125 |
-
@app.get("/image")
|
| 126 |
async def download_image(path: str):
|
| 127 |
"""Download and stream an image from the external API."""
|
| 128 |
try:
|
|
|
|
| 122 |
"""Proxy Server-Sent Events for the virtual try-on process."""
|
| 123 |
return EventSourceResponse(event_generator(session_hash))
|
| 124 |
|
| 125 |
+
@app.get("/download-image")
|
| 126 |
async def download_image(path: str):
|
| 127 |
"""Download and stream an image from the external API."""
|
| 128 |
try:
|