aebcnp commited on
Commit
73cd99f
1 Parent(s): f95a476

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -34,11 +34,12 @@ async def chat_groq(message, history):
34
 
35
 
36
  file_path = message.get("files")
37
- if file_path:
38
- messages.append("FILE PATH OK")
39
- pdf_text = extract_text_from_pdf(file_path)
40
- messages.append("PDF EXTRACTION OK")
41
- messages.append({"role": "user", "content": pdf_text})
 
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 = ''