Spaces:
Running
Running
Enzo Reis de Oliveira
commited on
Commit
·
38ecc96
1
Parent(s):
b60e08a
Fixing requirements
Browse files- Dockerfile +1 -4
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -4,10 +4,7 @@ WORKDIR /app
|
|
| 4 |
COPY requirements.txt .
|
| 5 |
RUN pip install -r --no-cache-dir requirements.txt
|
| 6 |
# preload models
|
| 7 |
-
|
| 8 |
-
from transformers import BartForConditionalGeneration, AutoTokenizer;\
|
| 9 |
-
AutoTokenizer.from_pretrained("ibm/materials.selfies-ted");\
|
| 10 |
-
BartForConditionalGeneration.from_pretrained("ibm/materials.selfies-ted")'
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
CMD ["python", "app.py"]
|
|
|
|
| 4 |
COPY requirements.txt .
|
| 5 |
RUN pip install -r --no-cache-dir requirements.txt
|
| 6 |
# preload models
|
| 7 |
+
|
|
|
|
|
|
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
CMD ["python", "app.py"]
|
requirements.txt
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
wheel
|
| 3 |
torch>=2.1.0
|
| 4 |
transformers>=4.40.0
|
| 5 |
-
pytorch-fast-transformers==0.4.0
|
| 6 |
regex
|
| 7 |
numpy==1.26.4
|
| 8 |
pandas==1.4.0
|
|
|
|
| 2 |
wheel
|
| 3 |
torch>=2.1.0
|
| 4 |
transformers>=4.40.0
|
|
|
|
| 5 |
regex
|
| 6 |
numpy==1.26.4
|
| 7 |
pandas==1.4.0
|