Update music_generator.py
Browse files- music_generator.py +2 -2
music_generator.py
CHANGED
|
@@ -147,8 +147,8 @@ def generate_accompaniment(emotion, sentiment_score, tempo=100, output_path="acc
|
|
| 147 |
# Clean up midi file
|
| 148 |
if os.path.exists(midi_path):
|
| 149 |
os.remove(midi_path)
|
| 150 |
-
|
| 151 |
-
return output_path
|
| 152 |
|
| 153 |
except ImportError:
|
| 154 |
print("FluidSynth not available. Creating synthetic audio instead.")
|
|
|
|
| 147 |
# Clean up midi file
|
| 148 |
if os.path.exists(midi_path):
|
| 149 |
os.remove(midi_path)
|
| 150 |
+
|
| 151 |
+
return output_path
|
| 152 |
|
| 153 |
except ImportError:
|
| 154 |
print("FluidSynth not available. Creating synthetic audio instead.")
|