Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -282,6 +282,9 @@ async def extract_text_from_mixed_pdf(file_path):
|
|
| 282 |
@cl.on_chat_start
|
| 283 |
async def on_chat_start():
|
| 284 |
|
|
|
|
|
|
|
|
|
|
| 285 |
files = None # Initialize variable to store uploaded files
|
| 286 |
|
| 287 |
# Wait for the user to upload a file
|
|
|
|
| 282 |
@cl.on_chat_start
|
| 283 |
async def on_chat_start():
|
| 284 |
|
| 285 |
+
# Clear previous session data
|
| 286 |
+
cl.user_session.clear()
|
| 287 |
+
|
| 288 |
files = None # Initialize variable to store uploaded files
|
| 289 |
|
| 290 |
# Wait for the user to upload a file
|