Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,45 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
from fastapi.responses import HTMLResponse
|
| 3 |
-
|
| 4 |
-
app = FastAPI()
|
| 5 |
-
|
| 6 |
-
@app.get("/", response_class=HTMLResponse)
|
| 7 |
-
def home():
|
| 8 |
-
return """
|
| 9 |
-
<!DOCTYPE html>
|
| 10 |
-
<html>
|
| 11 |
-
<head>
|
| 12 |
-
<title>OpenClaw</title>
|
| 13 |
-
<style>
|
| 14 |
-
body {
|
| 15 |
-
font-family: Arial;
|
| 16 |
-
background-color: #0f172a;
|
| 17 |
-
color: white;
|
| 18 |
-
text-align: center;
|
| 19 |
-
padding-top: 100px;
|
| 20 |
-
}
|
| 21 |
-
h1 {
|
| 22 |
-
font-size: 48px;
|
| 23 |
-
}
|
| 24 |
-
p {
|
| 25 |
-
font-size: 20px;
|
| 26 |
-
color: #94a3b8;
|
| 27 |
-
}
|
| 28 |
-
.box {
|
| 29 |
-
background: #1e293b;
|
| 30 |
-
padding: 20px;
|
| 31 |
-
border-radius: 10px;
|
| 32 |
-
display: inline-block;
|
| 33 |
-
margin-top: 20px;
|
| 34 |
-
}
|
| 35 |
-
</style>
|
| 36 |
-
</head>
|
| 37 |
-
<body>
|
| 38 |
-
<h1>🦾 OpenClaw is running</h1>
|
| 39 |
-
<div class="box">
|
| 40 |
-
<p>Your OpenClaw frontend is successfully deployed on Hugging Face Spaces.</p>
|
| 41 |
-
<p>Status: ✅ Online</p>
|
| 42 |
-
</div>
|
| 43 |
-
</body>
|
| 44 |
-
</html>
|
| 45 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|