barathm2001 commited on
Commit
3b3454e
·
verified ·
1 Parent(s): 8eb0634

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +2 -3
Dockerfile CHANGED
@@ -23,4 +23,4 @@ WORKDIR $HOME/app
23
  COPY --chown=user . $HOME/app
24
 
25
  # Run the application
26
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
23
  COPY --chown=user . $HOME/app
24
 
25
  # Run the application
26
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- fastapi==0.73.0
2
  requests==2.27.*
3
  uvicorn[standard]==0.17.*
4
  sentencepiece==0.2.0
@@ -7,6 +7,5 @@ transformers==4.28.0
7
  numpy<2
8
  peft==0.11.1
9
  huggingface-hub==0.17.0
10
-
11
- # Downgrade mistral-common to a version compatible with pydantic 1.x
12
  mistral-common==1.2.0
 
 
1
+ fastapi==0.103.0 # Updated to a version compatible with pydantic 2.x
2
  requests==2.27.*
3
  uvicorn[standard]==0.17.*
4
  sentencepiece==0.2.0
 
7
  numpy<2
8
  peft==0.11.1
9
  huggingface-hub==0.17.0
 
 
10
  mistral-common==1.2.0
11
+ pydantic>=2.6.1,<3.0.0 # Explicitly specify pydantic version