Spaces:
Build error
Build error
respond_to_question_with_llama
Browse files
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 |
|