alexkueck commited on
Commit
055ec6f
1 Parent(s): 6587416

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -171,10 +171,10 @@ def process_image(image_path, prompt):
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,
178
  'input': prompt,
179
  }
180
  return data
 
171
  encoded_string = b64encode(image_file.read()).decode()
172
  print ("encoded string.................")
173
  print(encoded_string)
174
+
175
  # Prepare the data for the API request (specific to the API you're using)
176
  data = {
177
+ 'image': "/home/user/app/data/history/bbb_1.png", #encoded_string,
178
  'input': prompt,
179
  }
180
  return data