MukulRay commited on
Commit
deeafba
·
1 Parent(s): 63fbefa

feat: HuggingFace Spaces deploy — port 7860, dynamic API URL

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. index.html +1 -1
Dockerfile CHANGED
@@ -21,4 +21,4 @@ COPY main.py rag.py embedder.py ingest.py index.html ./
21
 
22
  EXPOSE 8000
23
 
24
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
21
 
22
  EXPOSE 8000
23
 
24
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
index.html CHANGED
@@ -651,7 +651,7 @@
651
  })();
652
 
653
  // ── API ────────────────────────────────────────────────────────────────────────
654
- const API = 'http://localhost:8000';
655
  const history = [];
656
 
657
  async function checkHealth() {
 
651
  })();
652
 
653
  // ── API ────────────────────────────────────────────────────────────────────────
654
+ const API = window.location.origin;;
655
  const history = [];
656
 
657
  async function checkHealth() {