Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,11 +34,12 @@ async def chat_groq(message, history):
|
|
34 |
|
35 |
|
36 |
file_path = message.get("files")
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
42 |
|
43 |
|
44 |
response_content = ''
|
|
|
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")
|
42 |
+
# messages.append({"role": "user", "content": pdf_text})
|
43 |
|
44 |
|
45 |
response_content = ''
|