Spaces:
Running
Running
Update test.py
Browse files
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
|
|
|
|
|
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}
|