Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,9 @@ def answer_question(transcript, question):
|
|
| 32 |
model="mixtral-8x7b-32768",
|
| 33 |
messages=[
|
| 34 |
{"role": "system", "content": "You are a helpful assistant."},
|
| 35 |
-
{"role": "user", "content": f"Using the following transcript as context
|
| 36 |
],
|
| 37 |
-
max_tokens=
|
| 38 |
)
|
| 39 |
|
| 40 |
if response.choices and response.choices[0].message:
|
|
|
|
| 32 |
model="mixtral-8x7b-32768",
|
| 33 |
messages=[
|
| 34 |
{"role": "system", "content": "You are a helpful assistant."},
|
| 35 |
+
{"role": "user", "content": f"Using the following transcript as context and then go through the question and then please solve or answer the question coorectly:\n\nTranscript:\n{transcript}\n\nQuestion:\n{question}"}
|
| 36 |
],
|
| 37 |
+
max_tokens=1500
|
| 38 |
)
|
| 39 |
|
| 40 |
if response.choices and response.choices[0].message:
|