abdoolamunir commited on
Commit
ecc5f2a
1 Parent(s): f4f7720

Update hugginface.yml

Browse files
Files changed (1) hide show
  1. hugginface.yml +13 -2
hugginface.yml CHANGED
@@ -1,4 +1,15 @@
 
 
 
 
 
1
  runtime:
2
  env: # Environment variables needed by the application
3
- HF_HOME: /app/.cache/huggingface # Home directory for all Hugging Face data
4
- port: 8000 # The port on which your FastAPI application is configured to run
 
 
 
 
 
 
 
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
+