essprasad commited on
Commit
98e8a26
·
verified ·
1 Parent(s): 026adb3

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
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:7860{request.url.path}"
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