Elliotasdasdasfasas commited on
Commit
16cc6ea
1 Parent(s): c5ae0d4

Fix 503: Fault-tolerant start (Run app even if mount fails)

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. mount_azure.sh +1 -1
app.py CHANGED
@@ -647,3 +647,7 @@ async def save_thought(
647
  except json.JSONDecodeError:
648
  raise HTTPException(400, "Invalid JSON")
649
 
 
 
 
 
 
647
  except json.JSONDecodeError:
648
  raise HTTPException(400, "Invalid JSON")
649
 
650
+ if __name__ == "__main__":
651
+ import uvicorn
652
+ uvicorn.run(app, host="0.0.0.0", port=7860)
653
+
mount_azure.sh CHANGED
@@ -1,5 +1,5 @@
1
  #!/bin/bash
2
- set -e
3
 
4
  # Configuraci贸n
5
  REMOTE_HOST="ssh.my-robot.dev"
 
1
  #!/bin/bash
2
+ # set -e (Disabled to allow degraded mode)
3
 
4
  # Configuraci贸n
5
  REMOTE_HOST="ssh.my-robot.dev"