Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -161,7 +161,7 @@ def umwandeln_fuer_anzeige(image):
|
|
161 |
def process_image(image_path, prompt):
|
162 |
# Convert image to base64
|
163 |
with open(image_path, "rb") as image_file:
|
164 |
-
encoded_string =
|
165 |
|
166 |
# Prepare the data for the API request (specific to the API you're using)
|
167 |
data = {
|
|
|
161 |
def process_image(image_path, prompt):
|
162 |
# Convert image to base64
|
163 |
with open(image_path, "rb") as image_file:
|
164 |
+
encoded_string = b64encode(image_file.read()).decode()
|
165 |
|
166 |
# Prepare the data for the API request (specific to the API you're using)
|
167 |
data = {
|