ghostdrive1 commited on
Commit
0c4dbe2
·
verified ·
1 Parent(s): 86ba74e

Upload folder using huggingface_hub (part 2)

Browse files
Files changed (1) hide show
  1. start.sh +8 -1
start.sh CHANGED
@@ -1,3 +1,10 @@
1
  #!/bin/bash
2
- redis-server --daemonize yes
 
 
 
 
 
 
 
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