Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,9 @@ async def chat_groq(message, history):
|
|
34 |
|
35 |
|
36 |
file_path = message.get("files")
|
37 |
-
|
38 |
-
|
|
|
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")
|