feat: HuggingFace Spaces deploy — port 7860, dynamic API URL
Browse files- Dockerfile +1 -1
- 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", "
|
|
|
|
| 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 =
|
| 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() {
|