Spaces:
Sleeping
Sleeping
Update app.py
Browse filesindentation error
app.py
CHANGED
|
@@ -50,7 +50,7 @@ class GPTDriveIntegration:
|
|
| 50 |
return results.get('files', [])
|
| 51 |
|
| 52 |
def get_file_content(self, file_id, mime_type):
|
| 53 |
-
|
| 54 |
try:
|
| 55 |
if 'text' in mime_type or 'document' in mime_type:
|
| 56 |
if 'document' in mime_type:
|
|
|
|
| 50 |
return results.get('files', [])
|
| 51 |
|
| 52 |
def get_file_content(self, file_id, mime_type):
|
| 53 |
+
"""Download and extract text content from file"""
|
| 54 |
try:
|
| 55 |
if 'text' in mime_type or 'document' in mime_type:
|
| 56 |
if 'document' in mime_type:
|