alexkueck commited on
Commit
6587416
1 Parent(s): 20697e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -169,8 +169,9 @@ def process_image(image_path, prompt):
169
  #with open(image_path, "rb") as image_file:
170
  with open("/home/user/app/data/history/bbb_1.png", "rb") as image_file:
171
  encoded_string = b64encode(image_file.read()).decode()
172
- print ("necoded string.................")
173
  print(encoded_string)
 
174
  # Prepare the data for the API request (specific to the API you're using)
175
  data = {
176
  'image': encoded_string,
 
169
  #with open(image_path, "rb") as image_file:
170
  with open("/home/user/app/data/history/bbb_1.png", "rb") as image_file:
171
  encoded_string = b64encode(image_file.read()).decode()
172
+ print ("encoded string.................")
173
  print(encoded_string)
174
+ encoded_string.save("/home/user/app/data/history/")
175
  # Prepare the data for the API request (specific to the API you're using)
176
  data = {
177
  'image': encoded_string,