Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def input_image_details(uploaded_file):
|
|
19 |
bytes_data=uploaded_file.getvalue() # Read the files into bytes
|
20 |
image_parts=[
|
21 |
{
|
22 |
-
"
|
23 |
"data":bytes_data
|
24 |
}
|
25 |
]
|
|
|
19 |
bytes_data=uploaded_file.getvalue() # Read the files into bytes
|
20 |
image_parts=[
|
21 |
{
|
22 |
+
"mime_type":uploaded_file.type, # get th mime type of the uploaded file
|
23 |
"data":bytes_data
|
24 |
}
|
25 |
]
|