ShazaAly commited on
Commit
171dc7f
·
verified ·
1 Parent(s): 3245013

Create run.sh

Browse files
Files changed (1) hide show
  1. run.sh +11 -0
run.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Set the Hugging Face home directory to the persistent /data folder
4
+ export HF_HOME=/data
5
+
6
+ # Create the directory that the transformers library will try to use.
7
+ # The -p flag ensures it doesn't fail if the directory already exists.
8
+ mkdir -p $HF_HOME/hub
9
+
10
+ # Now, start the FastAPI application
11
+ uvicorn app:app --host 0.0.0.0 --port 7860