Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -85,13 +85,12 @@ def mood_art_generator(image):
|
|
85 |
print("Mood:", mood)
|
86 |
if mood:
|
87 |
art = generate_art(mood)
|
88 |
-
emoji = mood_emojis[mood
|
89 |
output_text = f"You seem to be {mood} {emoji}. Here's an artwork representing it!"
|
90 |
return art, output_text
|
91 |
else:
|
92 |
return None, "Failed to generate artwork."
|
93 |
|
94 |
-
|
95 |
iface = gr.Interface(
|
96 |
fn=mood_art_generator,
|
97 |
inputs=gr.inputs.Image(shape=(224, 224), image_mode="RGB", source="upload"),
|
|
|
85 |
print("Mood:", mood)
|
86 |
if mood:
|
87 |
art = generate_art(mood)
|
88 |
+
emoji = mood_emojis[mood
|
89 |
output_text = f"You seem to be {mood} {emoji}. Here's an artwork representing it!"
|
90 |
return art, output_text
|
91 |
else:
|
92 |
return None, "Failed to generate artwork."
|
93 |
|
|
|
94 |
iface = gr.Interface(
|
95 |
fn=mood_art_generator,
|
96 |
inputs=gr.inputs.Image(shape=(224, 224), image_mode="RGB", source="upload"),
|