Ashrafb commited on
Commit
0c6cf6e
·
1 Parent(s): 1582229

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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"