Spaces:
Runtime error
Runtime error
abdoolamunir
commited on
Update hugginface.yml
Browse files- hugginface.yml +13 -2
hugginface.yml
CHANGED
@@ -1,4 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
runtime:
|
2 |
env: # Environment variables needed by the application
|
3 |
-
|
4 |
-
port:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# huggingface.yml
|
2 |
+
build:
|
3 |
+
dockerfile: Dockerfile # Path to Dockerfile from the root of the repository
|
4 |
+
context: . # Docker build context
|
5 |
+
|
6 |
runtime:
|
7 |
env: # Environment variables needed by the application
|
8 |
+
TRANSFORMERS_CACHE: /app/.cache/huggingface/transformers # Cache directory for Transformers
|
9 |
+
port: 80 # The port on which your FastAPI application is configured to run
|
10 |
+
|
11 |
+
resources:
|
12 |
+
cpu: 2 # Number of CPU cores
|
13 |
+
memory: 4G # Amount of memory allocated (4 GB in this example)
|
14 |
+
gpu: 0 # Number of GPUs (0 for CPU only)
|
15 |
+
|