phenixrhyder
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
1 |
+
from flask import Flask, send_from_directory
|
2 |
+
|
3 |
+
# Create a Flask web server
|
4 |
+
app = Flask(__name__, static_folder='.', static_url_path='')
|
5 |
+
|
6 |
+
# Define the route for the root URL ('/')
|
7 |
+
@app.route('/')
|
8 |
+
def index():
|
9 |
+
# Send the index.html file from the current directory
|
10 |
+
return send_from_directory('.', 'index.html')
|
11 |
+
|
12 |
+
# This allows the app to be run by a production server
|
13 |
+
if __name__ == '__main__':
|
14 |
+
app.run(host='0.0.0.0', port=7860)
|