Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def safe_filename(text):
|
|
73 |
def encode_image(image):
|
74 |
"""Encode image to base64."""
|
75 |
buffered = BytesIO()
|
76 |
-
image.save(buffered, format="PNG")
|
77 |
return base64.b64encode(buffered.getvalue()).decode()
|
78 |
|
79 |
def predict(prompt, guidance, steps, seed=1231231):
|
|
|
73 |
def encode_image(image):
|
74 |
"""Encode image to base64."""
|
75 |
buffered = BytesIO()
|
76 |
+
#image.save(buffered, format="PNG")
|
77 |
return base64.b64encode(buffered.getvalue()).decode()
|
78 |
|
79 |
def predict(prompt, guidance, steps, seed=1231231):
|