update app.py
Browse files
app.py
CHANGED
|
@@ -608,7 +608,7 @@ def upload_file():
|
|
| 608 |
# Upload to Gemini File API
|
| 609 |
document = client.files.upload(
|
| 610 |
file_io,
|
| 611 |
-
|
| 612 |
)
|
| 613 |
|
| 614 |
# Create cache with system instruction
|
|
@@ -674,7 +674,7 @@ def upload_from_url():
|
|
| 674 |
# Upload to Gemini File API
|
| 675 |
document = client.files.upload(
|
| 676 |
file_io,
|
| 677 |
-
|
| 678 |
)
|
| 679 |
|
| 680 |
# Create cache with system instruction
|
|
|
|
| 608 |
# Upload to Gemini File API
|
| 609 |
document = client.files.upload(
|
| 610 |
file_io,
|
| 611 |
+
mime_type='application/pdf'
|
| 612 |
)
|
| 613 |
|
| 614 |
# Create cache with system instruction
|
|
|
|
| 674 |
# Upload to Gemini File API
|
| 675 |
document = client.files.upload(
|
| 676 |
file_io,
|
| 677 |
+
mime_type='application/pdf'
|
| 678 |
)
|
| 679 |
|
| 680 |
# Create cache with system instruction
|