forked from kpatel0170/Electron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
31 lines (23 loc) · 745 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# from flask import Flask, request, render_template
# import pandas as pd
# import home
# #declaring a Flask app
# app = Flask(__name__)
# @app.route('/', methods=['GET', 'POST'])
# def main():
# if request.method == "POST": # If the form is submitted
# clf = joblib.load("data.pkl")
from flask import Flask, render_template
app = Flask(__name__, template_folder='templates', static_folder='static')
STATIC_URL = 'static/sample/'
# url_for('static', filename='samplee.css')
@app.route('/')
def home():
return render_template('sample.html')
if __name__ == '__samplee__':
app.run(debug = True)
@app.route('/submit')
def demo():
return render_template('demo.html')
if __name__ == '__samplee__':
app.run(debug = True)