Spaces:
Runtime error
Runtime error
Update kadi_apy_bot.py
Browse files- kadi_apy_bot.py +2 -2
kadi_apy_bot.py
CHANGED
|
@@ -37,8 +37,8 @@ class KadiAPYBot:
|
|
| 37 |
|
| 38 |
|
| 39 |
# Format contexts
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
# Generate response
|
| 44 |
response = self.generate_response(query, formatted_doc_contexts, formatted_code_contexts)
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
# Format contexts
|
| 40 |
+
formatted_doc_contexts = self.format_documents(doc_contexts)
|
| 41 |
+
formatted_code_contexts = self.format_documents(code_contexts)
|
| 42 |
|
| 43 |
# Generate response
|
| 44 |
response = self.generate_response(query, formatted_doc_contexts, formatted_code_contexts)
|