Spaces:
Paused
Paused
Upload folder using huggingface_hub (part 2)
Browse files
start.sh
CHANGED
|
@@ -1,3 +1,10 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
python hf_app.py
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
+
if [ -n "$REMOTE_REDIS_WS_URL" ]; then
|
| 3 |
+
echo "Connecting to remote Redis via WebSocket Proxy..."
|
| 4 |
+
python local_ws_proxy.py &
|
| 5 |
+
else
|
| 6 |
+
echo "Starting local Redis server..."
|
| 7 |
+
redis-server --daemonize yes
|
| 8 |
+
fi
|
| 9 |
+
|
| 10 |
python hf_app.py
|