Spaces:
Sleeping
Sleeping
apahilaj
commited on
Commit
•
b3627cb
1
Parent(s):
11c767d
pls work
Browse files
app.py
CHANGED
@@ -154,10 +154,7 @@ def load_db(file, k):
|
|
154 |
|
155 |
return qa
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
def greet(messages):
|
160 |
-
global chat_history
|
161 |
user_message = messages[-1]['content']
|
162 |
a = load_db("temp.pdf", 3) # assuming you've uploaded the file and saved it as "temp.pdf"
|
163 |
r = a.invoke({"question": user_message, "chat_history": chat_history})
|
|
|
154 |
|
155 |
return qa
|
156 |
|
157 |
+
def greet(messages, chat_history):
|
|
|
|
|
|
|
158 |
user_message = messages[-1]['content']
|
159 |
a = load_db("temp.pdf", 3) # assuming you've uploaded the file and saved it as "temp.pdf"
|
160 |
r = a.invoke({"question": user_message, "chat_history": chat_history})
|