A-yum1 commited on
Commit
4f6a6c3
·
1 Parent(s): 77901a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from analyze import TextAnalyzer
9
  import json
10
 
11
  process=AudioProcessor()
12
- transcription = TranscriptionMaker()
13
  app = Flask(__name__)
14
 
15
  users = []
@@ -41,6 +41,7 @@ def talk_detail():
41
  @app.route('/userregister', methods=['GET', 'POST'])
42
  def userregister():
43
  return render_template('userRegister.html')
 
44
  #人数確認
45
  @app.route('/confirm', methods=['GET']) # 基本的にGETで取得する想定なので、GETのみに変更
46
  def confirm():
@@ -51,7 +52,7 @@ def confirm():
51
  def transcription():
52
  global segments_dir
53
  global transcription_text
54
- transcription_text = transcription.create_transcription(segments_dir)
55
  return jsonify({'transcription': transcription_text}),200
56
 
57
  # AI分析エンドポイント
 
9
  import json
10
 
11
  process=AudioProcessor()
12
+ transcripter = TranscriptionMaker()
13
  app = Flask(__name__)
14
 
15
  users = []
 
41
  @app.route('/userregister', methods=['GET', 'POST'])
42
  def userregister():
43
  return render_template('userRegister.html')
44
+
45
  #人数確認
46
  @app.route('/confirm', methods=['GET']) # 基本的にGETで取得する想定なので、GETのみに変更
47
  def confirm():
 
52
  def transcription():
53
  global segments_dir
54
  global transcription_text
55
+ transcription_text = transcripter.create_transcription(segments_dir)
56
  return jsonify({'transcription': transcription_text}),200
57
 
58
  # AI分析エンドポイント