jeongsoo commited on
Commit
15e251d
Β·
1 Parent(s): cd49bcd
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1213,7 +1213,9 @@ class AutoRAGChatApp:
1213
 
1214
  # μŒμ„± 인식 μ‹€ν–‰
1215
  stt_client = ClovaSTT()
1216
- result = stt_client.recognize_file(temp_path)
 
 
1217
 
1218
  # μž„μ‹œ 파일 μ‚­μ œ
1219
  try:
 
1213
 
1214
  # μŒμ„± 인식 μ‹€ν–‰
1215
  stt_client = ClovaSTT()
1216
+ with open(temp_path, "rb") as f:
1217
+ audio_bytes = f.read()
1218
+ result = stt_client.recognize(audio_bytes)
1219
 
1220
  # μž„μ‹œ 파일 μ‚­μ œ
1221
  try: