Yaswanth56 commited on
Commit
4be2e38
·
verified ·
1 Parent(s): 5f73f37

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, render_template, send_from_directory
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route('/')
6
+ def index():
7
+ return render_template('index.html')
8
+
9
+ @app.route('/styles.css')
10
+ def styles():
11
+ return send_from_directory('static', 'styles.css')
12
+
13
+ @app.route('/script.js')
14
+ def script():
15
+ return send_from_directory('static', 'script.js')
16
+
17
+ if __name__ == '__main__':
18
+ app.run(debug=True, host='0.0.0.0', port=7860)