Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,8 @@ def get_music_prompt(emotion, transcribed_text, chunk_idx, total_chunks):
|
|
| 196 |
}
|
| 197 |
|
| 198 |
return emotion_prompts.get(emotion.lower(),
|
| 199 |
-
# f"Create background music with {emotion} atmosphere that represents: {transcribed_text}"
|
|
|
|
| 200 |
|
| 201 |
# Function to generate music with MusicGen (using acoustic emotion prediction)
|
| 202 |
def generate_music(transcribed_text, emotion_prediction, chunk_idx, total_chunks):
|
|
|
|
| 196 |
}
|
| 197 |
|
| 198 |
return emotion_prompts.get(emotion.lower(),
|
| 199 |
+
# f"Create background music with {emotion} atmosphere that represents: {transcribed_text}"
|
| 200 |
+
)
|
| 201 |
|
| 202 |
# Function to generate music with MusicGen (using acoustic emotion prediction)
|
| 203 |
def generate_music(transcribed_text, emotion_prediction, chunk_idx, total_chunks):
|