Spaces:
Paused
Paused
Update app.py
Browse files67 unmodified lines686970717273747576777867 unmodified linesreturn result[0]['video']def get_audioldm(prompt):amended_prompt = f"No Music. {prompt}"print(amended_prompt)client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")result = client.predict(amended_prompt, # str in 'Input text' Textbox component"Low quality. Music.", # str in 'Negative prompt' Textbox component10, # int | float (numeric value between 5 and 15) in 'Duration (seconds)' Slider component3.5, # int | float (numeric value between 0 and 7) in 'Guidance scale' Slider component67 unmodified lines6869707172737475767767 unmodified linesreturn result[0]['video']def get_audioldm(prompt):print(amended_prompt)client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")result = client.predict(prompt, # str in 'Input text' Textbox component"Low quality. Music.", # str in 'Negative prompt' Textbox component10, # int | float (numeric value between 5 and 15) in 'Duration (seconds)' Slider component3.5, # int | float (numeric value between 0 and 7) in 'Guidance scale' Slider component
app.py+1-2