Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -19,7 +19,7 @@ app.secret_key = FLASK_SECRET_KEY
|
|
| 19 |
|
| 20 |
limiter = Limiter(get_remote_address, app=app)
|
| 21 |
|
| 22 |
-
DATABASE = "database.db"
|
| 23 |
|
| 24 |
# HTML template
|
| 25 |
template = """
|
|
@@ -167,3 +167,7 @@ def run():
|
|
| 167 |
app.run(host="0.0.0.0", port=7860)
|
| 168 |
|
| 169 |
threading.Thread(target=run).start()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
limiter = Limiter(get_remote_address, app=app)
|
| 21 |
|
| 22 |
+
DATABASE = "/data/database.db"
|
| 23 |
|
| 24 |
# HTML template
|
| 25 |
template = """
|
|
|
|
| 167 |
app.run(host="0.0.0.0", port=7860)
|
| 168 |
|
| 169 |
threading.Thread(target=run).start()
|
| 170 |
+
|
| 171 |
+
@app.route("/debug")
|
| 172 |
+
def debug():
|
| 173 |
+
return f"Database exists: {os.path.exists(DATABASE)}"
|