chenx906 commited on
Commit
4ecc9f0
·
1 Parent(s): a405f27

Fix the deployment space problem

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -118,8 +118,8 @@ async def predict(file: UploadFile = File(...)):\n\
118
  RUN mkdir -p ui
119
  COPY ui/index.html ui/
120
 
121
- # Update API URL in HTML
122
- RUN sed -i "s|http://localhost:8000|https://readylab-vizref.hf.space|g" ui/index.html
123
 
124
  EXPOSE 7860
125
  CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
118
  RUN mkdir -p ui
119
  COPY ui/index.html ui/
120
 
121
+ # Update API URL in HTML - use relative path for same-domain API
122
+ RUN sed -i "s|http://localhost:8000||g" ui/index.html
123
 
124
  EXPOSE 7860
125
  CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "7860"]