C0untFloyd / bark-gui

🔊 Text-Prompted Generative Audio Model with Gradio
MIT License
674 stars 63 forks source link

Refresh button #52

Closed Jueun-Park closed 1 year ago

Jueun-Park commented 1 year ago

I am suggesting adding a refresh button for reloading prompt files. Please take a look at this suggestion and leave comments if you have any suggestions.

Backgrounds

I wanted to load a custom prompt file made from the 'clone voice' tab and create a custom voice, but just after generating the clone voice prompt file, I could not find the file in the TTS tab. So the refresh button would enhance the user experience.

Details

The stable-diffusion-webui provides the refresh button like below codes

and it might be added in this part https://github.com/C0untFloyd/bark-gui/blob/3ac2500134bd361f2401c665cf53321bd66d34f0/webui.py#L340-L342 by making a function of this part https://github.com/C0untFloyd/bark-gui/blob/3ac2500134bd361f2401c665cf53321bd66d34f0/webui.py#L282-L292

C0untFloyd commented 1 year ago

I would accept a PR if this is really working. You can already sort of refresh everything by just using "Restart server" on the settings page.