jeongsoo commited on
Commit
a2c4492
·
1 Parent(s): 98f89f5

Fix app file

Browse files
Files changed (1) hide show
  1. app/app.py +2 -2
app/app.py CHANGED
@@ -292,7 +292,7 @@ def voice_chat():
292
 
293
  # LLM 호출: 질문과 컨텍스트를 바탕으로 응답 생성
294
  prompt = f"질문: {transcription}\n\n컨텍스트:\n{context}\n\n답변:"
295
- answer = llm.generate(prompt)
296
 
297
  if not answer:
298
  logger.error("LLM 응답 생성 실패")
@@ -304,7 +304,7 @@ def voice_chat():
304
  return jsonify({
305
  "transcription": transcription,
306
  "answer": answer,
307
- "sources": sources # [{ "content": "...", "metadata": {...} }, ...]
308
  })
309
 
310
  except Exception as e:
 
292
 
293
  # LLM 호출: 질문과 컨텍스트를 바탕으로 응답 생성
294
  prompt = f"질문: {transcription}\n\n컨텍스트:\n{context}\n\n답변:"
295
+ answer = llm_client.generate(prompt)
296
 
297
  if not answer:
298
  logger.error("LLM 응답 생성 실패")
 
304
  return jsonify({
305
  "transcription": transcription,
306
  "answer": answer,
307
+ "sources": sources # [{ "text": "...", "metadata": {...} }, ...]
308
  })
309
 
310
  except Exception as e: