Spaces:
Running
on
Zero
Running
on
Zero
chong.zhang
commited on
Commit
·
d89f1ee
1
Parent(s):
fb52c82
update
Browse files- app.py +11 -1
- example/audio_prompts/1.wav +0 -0
app.py
CHANGED
@@ -38,6 +38,14 @@ MODELS = ["InspireMusic-1.5B-Long", "InspireMusic-1.5B", "InspireMusic-Base", "I
|
|
38 |
AUDIO_PROMPT_DIR = "demo/audio_prompts"
|
39 |
OUTPUT_AUDIO_DIR = "demo/outputs"
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
def generate_filename():
|
42 |
hash_object = hashlib.sha256(str(int(datetime.datetime.now().timestamp())).encode())
|
43 |
hash_string = hash_object.hexdigest()
|
@@ -193,7 +201,9 @@ def main():
|
|
193 |
output_sample_rate,
|
194 |
max_generate_audio_seconds],
|
195 |
outputs=music_output)
|
196 |
-
|
|
|
|
|
197 |
demo.launch()
|
198 |
|
199 |
if __name__ == '__main__':
|
|
|
38 |
AUDIO_PROMPT_DIR = "demo/audio_prompts"
|
39 |
OUTPUT_AUDIO_DIR = "demo/outputs"
|
40 |
|
41 |
+
DEMO_TEXT_PROMPTS = ["A captivating classical piano performance, this piece exudes a dynamic and intense atmosphere, showcasing intricate and expressive instrumental artistry.",
|
42 |
+
"A soothing instrumental piece blending elements of light music and pop, featuring a gentle guitar rendition. The overall feel is serene and reflective, likely instrumental with no vocals.",
|
43 |
+
"The instrumental rock piece features dynamic oscillations and wave-like progressions, creating an immersive and energetic atmosphere. The music is purely instrumental, with no vocals, and it blends elements of rock and post-rock for a powerful and evocative experience.",
|
44 |
+
"The classical instrumental piece exudes a haunting and evocative atmosphere, characterized by its intricate guitar work and profound emotional depth.",
|
45 |
+
"Experience a dynamic blend of instrumental electronic music with futuristic house vibes, featuring energetic beats and a captivating rhythm. The tracks are likely instrumental, focusing on the immersive soundscapes rather than vocal performances."]
|
46 |
+
|
47 |
+
DEMO_AUDIO_PROMPTS = ["examples/audio_prompts/1.wav"]
|
48 |
+
|
49 |
def generate_filename():
|
50 |
hash_object = hashlib.sha256(str(int(datetime.datetime.now().timestamp())).encode())
|
51 |
hash_string = hash_object.hexdigest()
|
|
|
201 |
output_sample_rate,
|
202 |
max_generate_audio_seconds],
|
203 |
outputs=music_output)
|
204 |
+
with gr.Row():
|
205 |
+
t2m_examples = gr.Examples(examples=DEMO_TEXT_PROMPTS, inputs=[text_input])
|
206 |
+
con_examples = gr.Examples(examples=DEMO_AUDIO_PROMPTS, inputs=[audio_input])
|
207 |
demo.launch()
|
208 |
|
209 |
if __name__ == '__main__':
|
example/audio_prompts/1.wav
ADDED
Binary file (240 kB). View file
|
|