Spaces:
Running
Running
Kastg
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import datetime
|
|
7 |
app = Flask(__name__)
|
8 |
|
9 |
# Define the path to static files
|
10 |
-
static_dir = os.path.join(os.path.dirname(os.path.abspath(__file__))
|
11 |
|
12 |
@app.route('/')
|
13 |
def index():
|
@@ -57,6 +57,6 @@ def status():
|
|
57 |
@app.errorhandler(404)
|
58 |
def page_not_found(e):
|
59 |
return send_from_directory(static_dir, '404.html'), 404
|
60 |
-
|
61 |
if __name__ == "__main__":
|
62 |
app.run(host="0.0.0.0", port=7860, debug=True)
|
|
|
7 |
app = Flask(__name__)
|
8 |
|
9 |
# Define the path to static files
|
10 |
+
static_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
|
11 |
|
12 |
@app.route('/')
|
13 |
def index():
|
|
|
57 |
@app.errorhandler(404)
|
58 |
def page_not_found(e):
|
59 |
return send_from_directory(static_dir, '404.html'), 404
|
60 |
+
|
61 |
if __name__ == "__main__":
|
62 |
app.run(host="0.0.0.0", port=7860, debug=True)
|