phenixrhyder commited on
Commit
d4ac62e
·
unverified ·
1 Parent(s): ab4b8ab

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,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)