Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def chatbot(pdf_file, user_question):
|
|
| 52 |
prompt = f"Based on this document, answer the question:\n\nDocument:\n{chunks[0]}\n\nQuestion: {user_question}"
|
| 53 |
|
| 54 |
try:
|
| 55 |
-
response = together.
|
| 56 |
model="mistralai/Mistral-7B-Instruct-v0.1",
|
| 57 |
prompt=prompt,
|
| 58 |
max_tokens=200,
|
|
|
|
| 52 |
prompt = f"Based on this document, answer the question:\n\nDocument:\n{chunks[0]}\n\nQuestion: {user_question}"
|
| 53 |
|
| 54 |
try:
|
| 55 |
+
response = together.Completion.create(
|
| 56 |
model="mistralai/Mistral-7B-Instruct-v0.1",
|
| 57 |
prompt=prompt,
|
| 58 |
max_tokens=200,
|