Spaces:
Runtime error
Runtime error
Update app.py
Browse files
__pycache__/analyze.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/analyze.cpython-310.pyc and b/__pycache__/analyze.cpython-310.pyc differ
|
|
|
__pycache__/process.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/process.cpython-310.pyc and b/__pycache__/process.cpython-310.pyc differ
|
|
|
__pycache__/transcription.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/transcription.cpython-310.pyc and b/__pycache__/transcription.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -52,6 +52,7 @@ def confirm():
|
|
| 52 |
@app.route('/reset_html', methods=['GET', 'POST'])
|
| 53 |
def reset_html():
|
| 54 |
return render_template('reset.html')
|
|
|
|
| 55 |
#メンバー削除
|
| 56 |
@app.route('/reset_member', methods=['GET', 'POST'])
|
| 57 |
def reset_member():
|
|
@@ -63,8 +64,15 @@ def reset_member():
|
|
| 63 |
def transcription():
|
| 64 |
global segments_dir
|
| 65 |
global transcription_text
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
# AI分析エンドポイント
|
| 70 |
@app.route('/analyze',methods =['GET','POST'])
|
|
|
|
| 52 |
@app.route('/reset_html', methods=['GET', 'POST'])
|
| 53 |
def reset_html():
|
| 54 |
return render_template('reset.html')
|
| 55 |
+
|
| 56 |
#メンバー削除
|
| 57 |
@app.route('/reset_member', methods=['GET', 'POST'])
|
| 58 |
def reset_member():
|
|
|
|
| 64 |
def transcription():
|
| 65 |
global segments_dir
|
| 66 |
global transcription_text
|
| 67 |
+
try:
|
| 68 |
+
transcription_text = transcripter.create_transcription(segments_dir)
|
| 69 |
+
print(transcription_text)
|
| 70 |
+
with open(transcription_text,'r',encoding='utf-8') as file:
|
| 71 |
+
file_content = file.read()
|
| 72 |
+
print(file_content)
|
| 73 |
+
return jsonify({'transcription': file_content}),200
|
| 74 |
+
except Exception as e:
|
| 75 |
+
return jsonify({"error": str(e)}),500
|
| 76 |
|
| 77 |
# AI分析エンドポイント
|
| 78 |
@app.route('/analyze',methods =['GET','POST'])
|