alexkueck commited on
Commit
af78fc9
1 Parent(s): 544967b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -156,9 +156,6 @@ def umwandeln_fuer_anzeige(image):
156
  image.save(buffer, format='PNG')
157
  return buffer.getvalue()
158
 
159
- def process_image(image_path, prompt):
160
- with open(image_path, "rb") as image_file:
161
- encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
162
 
163
  def process_image(image_path, prompt):
164
  #Bild aus tmp in Space ablegen
@@ -172,7 +169,7 @@ def process_image(image_path, prompt):
172
 
173
  # Convert image to base64
174
  with open(image_path, "rb") as image_file:
175
- encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
176
 
177
 
178
  # Prepare the data for the API request (specific to the API you're using)
 
156
  image.save(buffer, format='PNG')
157
  return buffer.getvalue()
158
 
 
 
 
159
 
160
  def process_image(image_path, prompt):
161
  #Bild aus tmp in Space ablegen
 
169
 
170
  # Convert image to base64
171
  with open(image_path, "rb") as image_file:
172
+ encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
173
 
174
 
175
  # Prepare the data for the API request (specific to the API you're using)