Omkar008 commited on
Commit
49f2646
1 Parent(s): 4a99753

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -1
test.py CHANGED
@@ -116,7 +116,9 @@ async def auth_google(request: Request):
116
 
117
  if data:
118
  data_new[filename]=data
119
- attachment_content = base64.urlsafe_b64decode(data.encode("UTF-8"))
 
 
120
  attachment_no+=1
121
 
122
  return {"attachment_count":attachment_no,"attachment_content":data_new}
 
116
 
117
  if data:
118
  data_new[filename]=data
119
+ attachment_content = base64.urlsafe_b64decode(data)
120
+ extracted_text = await extract_text_from_attachment(filename, attachment_content)
121
+
122
  attachment_no+=1
123
 
124
  return {"attachment_count":attachment_no,"attachment_content":data_new}