Spaces:
Sleeping
Sleeping
Commit
·
7ebdfaa
1
Parent(s):
a34332f
updated app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,9 @@ app=application
|
|
11 |
|
12 |
## Route for a home page
|
13 |
|
14 |
-
@app.route('/')
|
15 |
-
def index():
|
16 |
-
return render_template('index.html')
|
17 |
|
18 |
-
|
|
|
19 |
def predict_datapoint():
|
20 |
if request.method=='GET':
|
21 |
return render_template('home.html')
|
|
|
11 |
|
12 |
## Route for a home page
|
13 |
|
|
|
|
|
|
|
14 |
|
15 |
+
|
16 |
+
@app.route('/',methods=['GET','POST'])
|
17 |
def predict_datapoint():
|
18 |
if request.method=='GET':
|
19 |
return render_template('home.html')
|