Kathirsci commited on
Commit
94feff0
·
verified ·
1 Parent(s): a002c70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ QA_CHAIN_PROMPT = PromptTemplate(input_variables=["context", "question"],templat
25
  def predict(message, history):
26
  input_prompt = QA_CHAIN_PROMPT.format(question=message, context=history)
27
  result = llm.generate([input_prompt])
28
- print(result) # Add this line to inspect the result
29
- # ai_msg = ... (update this line based on the result structure)
30
  return ai_msg
31
 
32
 
 
25
  def predict(message, history):
26
  input_prompt = QA_CHAIN_PROMPT.format(question=message, context=history)
27
  result = llm.generate([input_prompt])
28
+ print(result)
29
+ ai_msg = result[0].generations[0].text
30
  return ai_msg
31
 
32