Penality commited on
Commit
fbc6f80
·
verified ·
1 Parent(s): d968fd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.chat.completions.create(
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.Completions.create(
56
  model="mistralai/Mistral-7B-Instruct-v0.1",
57
  prompt=prompt,
58
  max_tokens=200,