sandz7 commited on
Commit
64ae96b
Β·
1 Parent(s): 5319e7d

typo on encode_image()

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ chat_mode = {}
133
 
134
  def encode_image(image_path):
135
  with open(image_path, "rb") as image_file:
136
- return base64.v64encode(image_file.read()).decode('utf-8')
137
 
138
  def generation(message, history):
139
  """
 
133
 
134
  def encode_image(image_path):
135
  with open(image_path, "rb") as image_file:
136
+ return base64.b64encode(image_file.read()).decode('utf-8')
137
 
138
  def generation(message, history):
139
  """