Spaces:
Running
Running
change port
Browse files- Dockerfile +1 -1
- main.py +1 -1
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -22,4 +22,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
22 |
EXPOSE 8000
|
23 |
|
24 |
# Command to run the Uvicorn server
|
25 |
-
CMD ["uvicorn", "main:app", "--host", "localhost", "--port", "
|
|
|
22 |
EXPOSE 8000
|
23 |
|
24 |
# Command to run the Uvicorn server
|
25 |
+
CMD ["uvicorn", "main:app", "--host", "localhost", "--port", "7860"]
|
main.py
CHANGED
@@ -221,4 +221,4 @@ async def hello_world():
|
|
221 |
if __name__ == "__main__":
|
222 |
import uvicorn
|
223 |
|
224 |
-
uvicorn.run(app, host="127.0.0.1", port=
|
|
|
221 |
if __name__ == "__main__":
|
222 |
import uvicorn
|
223 |
|
224 |
+
uvicorn.run(app, host="127.0.0.1", port=7860)
|
requirements.txt
CHANGED
@@ -4,7 +4,7 @@ transformers==4.40.0
|
|
4 |
aiohttp==3.9.5
|
5 |
pillow==10.3.0
|
6 |
python-multipart==0.0.9
|
7 |
-
|
8 |
tf-keras==2.16.0
|
9 |
cachetools===5.3.3
|
10 |
pydantic===2.7.2
|
|
|
4 |
aiohttp==3.9.5
|
5 |
pillow==10.3.0
|
6 |
python-multipart==0.0.9
|
7 |
+
torch
|
8 |
tf-keras==2.16.0
|
9 |
cachetools===5.3.3
|
10 |
pydantic===2.7.2
|