avfranco commited on
Commit
787c0bf
·
1 Parent(s): 5f49ba8

respond_to_question_with_llama

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def respond_to_question_llama(transcript, question):
50
  response = client.chat_completion(
51
  messages=[{"role": "user", "content": f"Transcript: {transcript}\n\nUser: {question}"}],
52
  max_tokens=500,
53
- ).choices[0].content
54
 
55
  return response
56
 
 
50
  response = client.chat_completion(
51
  messages=[{"role": "user", "content": f"Transcript: {transcript}\n\nUser: {question}"}],
52
  max_tokens=500,
53
+ ).choices[0].message.content
54
 
55
  return response
56