Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -281,10 +281,6 @@ async def extract_text_from_mixed_pdf(file_path):
|
|
281 |
|
282 |
@cl.on_chat_start
|
283 |
async def on_chat_start():
|
284 |
-
|
285 |
-
# Clear previous session data
|
286 |
-
cl.user_session.delete("chain")
|
287 |
-
|
288 |
files = None # Initialize variable to store uploaded files
|
289 |
|
290 |
# Wait for the user to upload a file
|
@@ -348,7 +344,6 @@ async def on_chat_start():
|
|
348 |
|
349 |
@cl.on_message
|
350 |
async def main(message: cl.Message):
|
351 |
-
|
352 |
# Retrieve the chain from user session
|
353 |
chain = cl.user_session.get("chain")
|
354 |
# Callbacks happen asynchronously/parallel
|
|
|
281 |
|
282 |
@cl.on_chat_start
|
283 |
async def on_chat_start():
|
|
|
|
|
|
|
|
|
284 |
files = None # Initialize variable to store uploaded files
|
285 |
|
286 |
# Wait for the user to upload a file
|
|
|
344 |
|
345 |
@cl.on_message
|
346 |
async def main(message: cl.Message):
|
|
|
347 |
# Retrieve the chain from user session
|
348 |
chain = cl.user_session.get("chain")
|
349 |
# Callbacks happen asynchronously/parallel
|