Spaces:
Sleeping
Sleeping
root
commited on
Commit
Β·
d1aeed2
1
Parent(s):
712bb5f
Add deploy script and tidy home route
Browse files
app.py
CHANGED
|
@@ -18,7 +18,8 @@ class ChatResponse(BaseModel):
|
|
| 18 |
status: str
|
| 19 |
|
| 20 |
@app.get("/", response_class=HTMLResponse)
|
| 21 |
-
def home():
|
|
|
|
| 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."
|