Create run.sh
Browse files
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
|