aebcnp commited on
Commit
68e3297
1 Parent(s): e0ce934

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -34,8 +34,9 @@ async def chat_groq(message, history):
34
 
35
 
36
  file_path = message.get("files")
37
- messages.append(file_path)
38
- # if file_path:
 
39
  # messages.append("FILE PATH OK")
40
  # pdf_text = extract_text_from_pdf(file_path)
41
  # messages.append("PDF EXTRACTION OK")
 
34
 
35
 
36
  file_path = message.get("files")
37
+ if file_path:
38
+ messages.append(file_path)
39
+ #
40
  # messages.append("FILE PATH OK")
41
  # pdf_text = extract_text_from_pdf(file_path)
42
  # messages.append("PDF EXTRACTION OK")