Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,8 @@ def query_medgemma(image_path, question):
|
|
50 |
with open(image_path, "rb") as f:
|
51 |
image_bytes = f.read()
|
52 |
encoded_image = base64.b64encode(image_bytes).decode("utf-8")
|
|
|
|
|
53 |
|
54 |
payload = {
|
55 |
"inputs": [
|
|
|
50 |
with open(image_path, "rb") as f:
|
51 |
image_bytes = f.read()
|
52 |
encoded_image = base64.b64encode(image_bytes).decode("utf-8")
|
53 |
+
encoded_image = f"data:image/png;base64,{encoded_image}"
|
54 |
+
|
55 |
|
56 |
payload = {
|
57 |
"inputs": [
|