Spaces:
Runtime error
Runtime error
Introduce jinja
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from flask import Flask, request, jsonify,
|
| 2 |
import base64
|
| 3 |
import os
|
| 4 |
|
|
@@ -6,11 +6,11 @@ app = Flask(__name__)
|
|
| 6 |
|
| 7 |
@app.route('/')
|
| 8 |
def index():
|
| 9 |
-
return
|
| 10 |
|
| 11 |
@app.route('/feedback',methods=['POST'])
|
| 12 |
def feedback():
|
| 13 |
-
return
|
| 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
|