Update app.py
Browse files
app.py
CHANGED
|
@@ -158,7 +158,7 @@ def umwandeln_fuer_anzeige(image):
|
|
| 158 |
|
| 159 |
def process_image(image_path, prompt):
|
| 160 |
with open(image_path, "rb") as image_file:
|
| 161 |
-
|
| 162 |
|
| 163 |
def process_image(image_path, prompt):
|
| 164 |
#Bild aus tmp in Space ablegen
|
|
|
|
| 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
|