Upload folder using huggingface_hub
Browse files- app.py +1 -1
- usage.html +10 -0
app.py
CHANGED
|
@@ -36,7 +36,7 @@ thread.start()
|
|
| 36 |
|
| 37 |
@app.get("/", response_class=HTMLResponse)
|
| 38 |
def HuggingFaceSpaceRoot():
|
| 39 |
-
return ""
|
| 40 |
|
| 41 |
@app.head("/")
|
| 42 |
def UptimeRobot():
|
|
|
|
| 36 |
|
| 37 |
@app.get("/", response_class=HTMLResponse)
|
| 38 |
def HuggingFaceSpaceRoot():
|
| 39 |
+
return open("usage.html").read()
|
| 40 |
|
| 41 |
@app.head("/")
|
| 42 |
def UptimeRobot():
|
usage.html
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<title>Database</title>
|
| 3 |
+
<body>
|
| 4 |
+
<h2>Database</h2>
|
| 5 |
+
<p>A simple cloud database powered by HuggingFace Spaces</p>
|
| 6 |
+
<p>Usage:</p>
|
| 7 |
+
<p>1. Get/Post <code>https://xcx0902-database.hf.space/sql?sql=xxx</SQL></code></p>
|
| 8 |
+
<p>2. Get/Post <code>https://xcx0902-database.hf.space/select?sql=xxx</SQL></code></p>
|
| 9 |
+
</body>
|
| 10 |
+
</html>
|