File size: 1,287 Bytes
a108965
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/s2w-ai/DarkBERT

# if you want to clone without large files – just their pointers
# prepend your git clone with the following env var:
GIT_LFS_SKIP_SMUDGE=1

🐳 Get started with your docker Space!

Your new space has been created, follow these steps to get started (or read our full documentation )

Start by cloning this repo by using:

					

git clone https://huggingface.co/spaces/l3aalteshuva/eviI-Bert
				

Create your Dockerfile file:

# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . .

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]

Then commit and push:

					

git add Dockerfile
					

git commit -m masta
					

git push
				

(Hint: Create the Dockerfile file right in your browser alternatively)

πŸ€— Your app should be running on this page after a few moments !

App port

Your Docker Space needs to listen on port 7860

Documentation

Check out the full documentation of docker Spaces here