Spaces:
Sleeping
Sleeping
dangminh214 commited on
Commit ·
105b4a8
1
Parent(s): 135aa7a
change port to 7860
Browse files- Dockerfile +1 -1
- server.py +1 -1
Dockerfile
CHANGED
|
@@ -16,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 16 |
EXPOSE 8888
|
| 17 |
|
| 18 |
# Run FastAPI app using uvicorn
|
| 19 |
-
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 16 |
EXPOSE 8888
|
| 17 |
|
| 18 |
# Run FastAPI app using uvicorn
|
| 19 |
+
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|
server.py
CHANGED
|
@@ -13,7 +13,7 @@ with open("tfidf_vectorizer.pkl", "rb") as vectorizer_file:
|
|
| 13 |
# FastAPI app instance
|
| 14 |
app = FastAPI()
|
| 15 |
|
| 16 |
-
# Allow all origins to make requests (for development
|
| 17 |
origins = [
|
| 18 |
"*", # Allows all origins, can be restricted to specific domains in production
|
| 19 |
]
|
|
|
|
| 13 |
# FastAPI app instance
|
| 14 |
app = FastAPI()
|
| 15 |
|
| 16 |
+
# Allow all origins to make requests (for development p/#urposes)
|
| 17 |
origins = [
|
| 18 |
"*", # Allows all origins, can be restricted to specific domains in production
|
| 19 |
]
|