Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -190,7 +190,7 @@ def split_text(text, chunk_size=500):
|
|
| 190 |
print("splitting")
|
| 191 |
return [text[i:i+chunk_size] for i in range(0, len(text), chunk_size)]
|
| 192 |
|
| 193 |
-
def chatbot(
|
| 194 |
"""Processes the PDF and answers the user's question."""
|
| 195 |
print("chatbot start")
|
| 196 |
|
|
|
|
| 190 |
print("splitting")
|
| 191 |
return [text[i:i+chunk_size] for i in range(0, len(text), chunk_size)]
|
| 192 |
|
| 193 |
+
def chatbot(user_question, doc_presence):
|
| 194 |
"""Processes the PDF and answers the user's question."""
|
| 195 |
print("chatbot start")
|
| 196 |
|