Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -182,9 +182,9 @@ class Chatbot():
|
|
182 |
response = {'answer': answer, 'sources': sources}
|
183 |
return response
|
184 |
|
185 |
-
def reply(self,
|
186 |
-
print(
|
187 |
-
prompt = self.create_prompt(df,
|
188 |
return self.gpt(prompt)
|
189 |
|
190 |
def process_pdf(file):
|
|
|
182 |
response = {'answer': answer, 'sources': sources}
|
183 |
return response
|
184 |
|
185 |
+
def reply(self, embeddings, user_input):
|
186 |
+
print(user_input)
|
187 |
+
prompt = self.create_prompt(embeddings, df, user_input)
|
188 |
return self.gpt(prompt)
|
189 |
|
190 |
def process_pdf(file):
|