SoSa123456 commited on
Commit
d445a93
1 Parent(s): ab5e689

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,6 +1,6 @@
 
1
 
2
-
3
- from flask import Flask, render_template, request
4
  from speechbrain.pretrained import WhisperASR
5
 
6
  app = Flask(__name__)
@@ -40,7 +40,7 @@ html_template = """
40
 
41
  @app.route('/')
42
  def index():
43
- return html_template
44
 
45
  @app.route('/transcribe', methods=['POST'])
46
  def transcribe():
@@ -61,3 +61,4 @@ def transcribe():
61
 
62
  if __name__ == '__main__':
63
  app.run(debug=True)
 
 
1
+ # app_combined.py
2
 
3
+ from flask import Flask, render_template, request, render_template_string
 
4
  from speechbrain.pretrained import WhisperASR
5
 
6
  app = Flask(__name__)
 
40
 
41
  @app.route('/')
42
  def index():
43
+ return render_template_string(html_template)
44
 
45
  @app.route('/transcribe', methods=['POST'])
46
  def transcribe():
 
61
 
62
  if __name__ == '__main__':
63
  app.run(debug=True)
64
+