Spaces:
Sleeping
Sleeping
Create start.sh
Browse files
start.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
# ensure checkpoint directory exists; model will auto-download in app init if missing
|
| 5 |
+
mkdir -p /tmp
|
| 6 |
+
|
| 7 |
+
# run app
|
| 8 |
+
exec gunicorn --bind 0.0.0.0:7860 --workers 1 --threads 4 --timeout 120 app:app
|