Commit ·
68bb4fa
1
Parent(s): f8d61c8
fix port issue
Browse files- Dockerfile +2 -2
- frontend/app.py +1 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 8 |
COPY backend/ ./backend/
|
| 9 |
COPY frontend/ ./frontend/
|
| 10 |
|
| 11 |
-
EXPOSE 7860
|
| 12 |
|
| 13 |
-
CMD uvicorn backend.main:app --host 0.0.0.0 --port
|
| 14 |
python frontend/app.py
|
|
|
|
| 8 |
COPY backend/ ./backend/
|
| 9 |
COPY frontend/ ./frontend/
|
| 10 |
|
| 11 |
+
EXPOSE 7860
|
| 12 |
|
| 13 |
+
CMD uvicorn backend.main:app --host 0.0.0.0 --port 8000 --app-dir /app & \
|
| 14 |
python frontend/app.py
|
frontend/app.py
CHANGED
|
@@ -4,7 +4,7 @@ import matplotlib.pyplot as plt
|
|
| 4 |
import matplotlib
|
| 5 |
matplotlib.use('Agg') # non-interactive backend for servers
|
| 6 |
|
| 7 |
-
BACKEND_URL = "http://localhost:
|
| 8 |
|
| 9 |
def classify_intent(text):
|
| 10 |
if not text.strip():
|
|
|
|
| 4 |
import matplotlib
|
| 5 |
matplotlib.use('Agg') # non-interactive backend for servers
|
| 6 |
|
| 7 |
+
BACKEND_URL = "http://localhost:8000"
|
| 8 |
|
| 9 |
def classify_intent(text):
|
| 10 |
if not text.strip():
|