Yaswanth56's picture
Create app.py
4be2e38 verified
raw
history blame
424 Bytes
from flask import Flask, render_template, send_from_directory
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/styles.css')
def styles():
return send_from_directory('static', 'styles.css')
@app.route('/script.js')
def script():
return send_from_directory('static', 'script.js')
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=7860)