nehalelkaref commited on
Commit
ab926cc
1 Parent(s): 7ff0c05

first push

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. templates/prediction.html +14 -0
app.py CHANGED
@@ -26,7 +26,7 @@ def home():
26
 
27
  @app.route('/classify', methods = ['POST'])
28
  def classify():
29
- return "<h> text <\h>"
30
 
31
  if __name__ == "__main__":
32
  app.run()
 
26
 
27
  @app.route('/classify', methods = ['POST'])
28
  def classify():
29
+ return render_template('prediction.html', output=output)
30
 
31
  if __name__ == "__main__":
32
  app.run()
templates/prediction.html ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Result</title>
5
+ </head>
6
+ <body>
7
+ <div class="bg-info" align="center">
8
+ <h2>Results</h2>
9
+ </div>
10
+ <div id="output"></div>
11
+ <p class="output-statement">{{output}}</p>
12
+ </div>
13
+ </body>
14
+ </html>