Merge branch 'main' of hf.co:spaces/Zenaight/PropAgent
Browse files- Dockerfile +6 -6
- main.py +1 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
FROM python:3.11-slim
|
| 2 |
-
WORKDIR /code
|
| 3 |
-
COPY requirements.txt .
|
| 4 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 5 |
-
COPY . .
|
| 6 |
-
EXPOSE 7860
|
| 7 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
WORKDIR /code
|
| 3 |
+
COPY requirements.txt .
|
| 4 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 5 |
+
COPY . .
|
| 6 |
+
EXPOSE 7860
|
| 7 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
main.py
CHANGED
|
@@ -113,4 +113,4 @@ async def startup_event():
|
|
| 113 |
|
| 114 |
if __name__ == "__main__":
|
| 115 |
import uvicorn
|
| 116 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 113 |
|
| 114 |
if __name__ == "__main__":
|
| 115 |
import uvicorn
|
| 116 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|