From c2e4e3c2e9be855277d9f4fa9cd0544892ff829a Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 30 八月 2023 09:57:30 +0800
Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add
---
funasr/runtime/html5/h5Server.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/funasr/runtime/html5/h5Server.py b/funasr/runtime/html5/h5Server.py
index d0ecf27..96392f8 100644
--- a/funasr/runtime/html5/h5Server.py
+++ b/funasr/runtime/html5/h5Server.py
@@ -6,7 +6,7 @@
### 2022-2023 by zhaoming,mali aihealthx.com
-from flask import Flask,render_template,request,send_from_directory,jsonify
+from flask import Flask,render_template,request,send_from_directory,jsonify,redirect,url_for
#from gevent.pywsgi import WSGIServer
import datetime
@@ -20,7 +20,7 @@
@app.route('/')
def homePage():
- return render_template('recorderapp_test.html')
+ return redirect('/static/index.html')
parser = argparse.ArgumentParser()
@@ -62,4 +62,4 @@
#flask
print("srv run on ",port)
- app.run(debug=True,host=args.host,port=port, ssl_context=(args.certfile,args.keyfile))
+ app.run(debug=False,threaded=True,host=args.host,port=port, ssl_context=(args.certfile,args.keyfile))
--
Gitblit v1.9.1