Spaces:
Build error
Build error
Update app.py
Browse files19 unmodified lines2021222324252619 unmodified linesbuffered = BytesIO()image.save(buffered, format="JPEG")image_base64 = base64.b64encode(buffered.getvalue()).decode('utf-8')# Create text prompts for each moodtext_inputs = [f"{prompt}{mood}" for mood in moods]19 unmodified lines20212223242526272819 unmodified linesbuffered = BytesIO()image.save(buffered, format="JPEG")image_base64 = base64.b64encode(buffered.getvalue()).decode('utf-8')image = Image.fromarray((image * 255).astype(np.uint8)) # Add this line to convert the numpy array to a PIL image# Create text prompts for each moodtext_inputs = [f"{prompt}{mood}" for mood in moods]
app.py+2