David commited on
Commit
a4bf14c
·
1 Parent(s): 05084c3

Update setup for hf free spaces

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
- FROM python:3.9
5
 
6
  # The two following lines are requirements for the Dev Mode to be functional
7
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
 
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
+ FROM python:3.9-bullseye
5
 
6
  # The two following lines are requirements for the Dev Mode to be functional
7
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
  fastapi==0.74.*
2
  requests==2.27.*
3
  sentencepiece==0.1.*
4
- torch==1.11.*
5
  transformers==4.*
6
  uvicorn[standard]==0.17.*
7
  transformers~=4.44.0
 
1
  fastapi==0.74.*
2
  requests==2.27.*
3
  sentencepiece==0.1.*
4
+ torch==2.4.1+cpu --find-links https://download.pytorch.org/whl/cpu
5
  transformers==4.*
6
  uvicorn[standard]==0.17.*
7
  transformers~=4.44.0