Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,6 +93,9 @@ async def upload_drive_document(request: Request):
|
|
| 93 |
# Clean up: remove the temporary file after processing
|
| 94 |
os.remove(temp_file_path)
|
| 95 |
|
|
|
|
|
|
|
|
|
|
| 96 |
logging.info(f"Response is {response}")
|
| 97 |
|
| 98 |
# title must be lower case and no -
|
|
|
|
| 93 |
# Clean up: remove the temporary file after processing
|
| 94 |
os.remove(temp_file_path)
|
| 95 |
|
| 96 |
+
genai.delete_file(response.name)
|
| 97 |
+
|
| 98 |
+
|
| 99 |
logging.info(f"Response is {response}")
|
| 100 |
|
| 101 |
# title must be lower case and no -
|