Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
Hi there! I have a Discord bot that I created using discord.py. Lately, I've been working on adding a /music command that generates something. To achieve this, Im using a self hosted audiocraft library so I can use the api for my bot, it is using Gradio. Now, when my bot attempts to download the file after the api generates it, it doesn't work as expected. The issue seems to be related to the way I'm requesting the API download URL. I'm trying to request a download from: myapidomain.com/file=C:/Users/trist/AppData/Local/Temp/gradio/0aa6481d0 but it don't work because its an embedded video player and causes my code to download an empty file. Can anyone help me find a solution to this problem?
Hi there! I have a Discord bot that I created using discord.py. Lately, I've been working on adding a /music command that generates something. To achieve this, Im using a self hosted audiocraft library so I can use the api for my bot, it is using Gradio. Now, when my bot attempts to download the file after the api generates it, it doesn't work as expected. The issue seems to be related to the way I'm requesting the API download URL. I'm trying to request a download from: myapidomain.com/file=C:/Users/trist/AppData/Local/Temp/gradio/0aa6481d0 but it don't work because its an embedded video player and causes my code to download an empty file. Can anyone help me find a solution to this problem?