Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ class GPTDriveIntegration:
|
|
| 80 |
while done is False:
|
| 81 |
status, done = downloader.next_chunk()
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
elif mime_type == 'application/pdf':
|
| 86 |
# For PDF files, download binary content and extract text
|
|
|
|
| 80 |
while done is False:
|
| 81 |
status, done = downloader.next_chunk()
|
| 82 |
|
| 83 |
+
return file_content.getvalue().decode('utf-8')
|
| 84 |
|
| 85 |
elif mime_type == 'application/pdf':
|
| 86 |
# For PDF files, download binary content and extract text
|