Update app.py
Browse files
app.py
CHANGED
|
@@ -85,6 +85,9 @@ def main():
|
|
| 85 |
|
| 86 |
# Display the uploaded image
|
| 87 |
st.image(image_data, caption="Uploaded Image.", use_column_width=True)
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
if st.button("Send"):
|
| 90 |
system_prompt = "Your system prompt goes here"
|
|
|
|
| 85 |
|
| 86 |
# Display the uploaded image
|
| 87 |
st.image(image_data, caption="Uploaded Image.", use_column_width=True)
|
| 88 |
+
# Convert image data to base64 string
|
| 89 |
+
image_base64 = base64.b64encode(image_data).decode('utf-8')
|
| 90 |
+
|
| 91 |
|
| 92 |
if st.button("Send"):
|
| 93 |
system_prompt = "Your system prompt goes here"
|