root commited on
Commit
d1aeed2
Β·
1 Parent(s): 712bb5f

Add deploy script and tidy home route

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. deploy.sh +22 -0
app.py CHANGED
@@ -18,7 +18,8 @@ class ChatResponse(BaseModel):
18
  status: str
19
 
20
  @app.get("/", response_class=HTMLResponse)
21
- def home(): return """
 
22
  <!DOCTYPE html>
23
  <html>
24
  <head>
 
18
  status: str
19
 
20
  @app.get("/", response_class=HTMLResponse)
21
+ def home():
22
+ return """
23
  <!DOCTYPE html>
24
  <html>
25
  <head>
deploy.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ echo "πŸš€ Starting deployment to Hugging Face Space..."
4
+
5
+ # Check if we're in the right directory
6
+ if [ ! -f "app.py" ]; then
7
+ echo "❌ Error: app.py not found. Make sure you're in the sheikh-llm directory"
8
+ exit 1
9
+ fi
10
+
11
+ # Add all changes
12
+ git add .
13
+
14
+ # Commit with timestamp
15
+ git commit -m "Auto-deploy: $(date '+%Y-%m-%d %H:%M:%S')" || true
16
+
17
+ # Push to Hugging Face
18
+ git push origin main
19
+
20
+ echo "βœ… Deployment completed!"
21
+ echo "πŸ“Š Space URL: https://huggingface.co/spaces/RecentCoders/sheikh-llm"
22
+ echo "⏰ Build will start automatically. Check logs in your Space."