Spaces:
Running
Running
Update api.py
Browse files
api.py
CHANGED
|
@@ -132,7 +132,7 @@ async def proxy_to_gradio(request: Request):
|
|
| 132 |
Proxy any non-API path to Gradio, running internally on 127.0.0.1:7860.
|
| 133 |
"""
|
| 134 |
# Build internal URL to Gradio
|
| 135 |
-
target_url = f"http://127.0.0.1:
|
| 136 |
if request.url.query:
|
| 137 |
target_url += f"?{request.url.query}"
|
| 138 |
|
|
|
|
| 132 |
Proxy any non-API path to Gradio, running internally on 127.0.0.1:7860.
|
| 133 |
"""
|
| 134 |
# Build internal URL to Gradio
|
| 135 |
+
target_url = f"http://127.0.0.1:9000{request.url.path}"
|
| 136 |
if request.url.query:
|
| 137 |
target_url += f"?{request.url.query}"
|
| 138 |
|