Spaces:
Sleeping
Sleeping
charan
commited on
Commit
•
49d6ae7
1
Parent(s):
15beb52
Added templates
Browse files- app.py +2 -2
- templates/index.html +1 -0
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from flask import Flask, request, jsonify
|
2 |
from keras.models import load_model
|
3 |
from PIL import Image, ImageOps
|
4 |
import numpy as np
|
@@ -19,7 +19,7 @@ confidence_threshold = 0.7
|
|
19 |
|
20 |
@app.route('/')
|
21 |
def hello():
|
22 |
-
return
|
23 |
|
24 |
@app.route('/predict', methods=['POST'])
|
25 |
def predict():
|
|
|
1 |
+
from flask import Flask, request, jsonify,render_template
|
2 |
from keras.models import load_model
|
3 |
from PIL import Image, ImageOps
|
4 |
import numpy as np
|
|
|
19 |
|
20 |
@app.route('/')
|
21 |
def hello():
|
22 |
+
return render_template('index.html')
|
23 |
|
24 |
@app.route('/predict', methods=['POST'])
|
25 |
def predict():
|
templates/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
<h1>This is the home page</h1>
|