A-yum1 commited on
Commit
b5a0b86
·
1 Parent(s): a2ae10d

Introduce jinja

Browse files
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from flask import Flask, request, jsonify, send_from_directory
2
  import base64
3
  import os
4
 
@@ -6,11 +6,11 @@ app = Flask(__name__)
6
 
7
  @app.route('/')
8
  def index():
9
- return send_from_directory(".", "index.html")
10
 
11
  @app.route('/feedback',methods=['POST'])
12
  def feedback():
13
- return send_from_directory(".","feedback.html")
14
 
15
  @app.route('/upload_audio', methods=['POST'])
16
  def upload_audio():
 
1
+ from flask import Flask, request, jsonify, render_template
2
  import base64
3
  import os
4
 
 
6
 
7
  @app.route('/')
8
  def index():
9
+ return render_template('index.html')
10
 
11
  @app.route('/feedback',methods=['POST'])
12
  def feedback():
13
+ return render_template("feedback.html")
14
 
15
  @app.route('/upload_audio', methods=['POST'])
16
  def upload_audio():
feedback.html → templates/feedback.html RENAMED
File without changes
index.html → templates/index.html RENAMED
File without changes
talkDetail.html → templates/talkDetail.html RENAMED
File without changes