Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,14 +44,15 @@ emotions = {1: 'neutral', 2: 'calm', 3: 'happy', 4: 'sad', 5: 'angry', 6: 'fearf
|
|
| 44 |
|
| 45 |
# Prompts for each emotion
|
| 46 |
emotion_prompts = {
|
| 47 |
-
'neutral': "Generate a
|
| 48 |
-
'calm': "Generate a geometric texture with soft colors and tranquil illumination
|
| 49 |
-
'happy': "Generate a
|
| 50 |
-
'sad': "Generate a
|
| 51 |
-
'angry': "
|
| 52 |
-
'fearful': "Generate
|
| 53 |
-
'disgust': "Generate a geometric texture,
|
| 54 |
-
'surprised': "
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
# Function to predict emotion from audio
|
|
|
|
| 44 |
|
| 45 |
# Prompts for each emotion
|
| 46 |
emotion_prompts = {
|
| 47 |
+
'neutral': "Generate a texture with neutral colors, balanced illumination, and simple shapes.",
|
| 48 |
+
'calm': "Generate a geometric texture with soft colors and tranquil illumination, using round and calming shapes.",
|
| 49 |
+
'happy': "Generate a geometric texture with vibrant colors and bright, sunny illumination with simple, round shapes.",
|
| 50 |
+
'sad': "Generate a geometric texture with muted colors, somber illumination, and dark and gloomy shapes.",
|
| 51 |
+
'angry': "Create a geometric texture with bold, dark colors, intense illumination, and sharp, irregular shapes. ",
|
| 52 |
+
'fearful': "Generate a scary geometric texture using dark, muted colors with harsh, dim illumination and irregular shapes.",
|
| 53 |
+
'disgust': "Generate a geometric texture with murky, sickly colors, distorted illumination effects, and irregular shapes.",
|
| 54 |
+
'surprised': "Create a geometric texture with vibrant electric and striking colors, using high-contrast lighting and sharp, angular shapes with starbursts, zigzags, and spirals.
|
| 55 |
+
"
|
| 56 |
}
|
| 57 |
|
| 58 |
# Function to predict emotion from audio
|