hydrusbeta / hay_say_ui

A unified, browser-based interface for pony voice generation
Apache License 2.0
39 stars 3 forks source link

Cannot ponify more than 20 files #19

Open vadimfedulov035 opened 7 months ago

vadimfedulov035 commented 7 months ago

hay_say_ui-1 | output_value = func(*func_args, **func_kwargs) # %% callback invoked %% hay_say_ui-1 | File "/home/luna/hay_say/hay_say_ui/main.py", line 396, in update_playback hay_say_ui-1 | hash_raw = reverse_lookup[selected_file] hay_say_ui-1 | KeyError: '1111.wav' hay_say_ui-1 | announcements_file hay_say_ui-1 | /home/luna/hay_say/hay_say_ui/running as server/announcements.json

After some amount of ponified audio samples there is no possibility to add new file, only to select from already used ones. And there is no option to clear file cache inside the program to fix it or simply clear the list.

hydrusbeta commented 7 months ago

Oh wow, so you can't even add new files after about 20 or so? Can you tell me what operating system and browser you are using? I am unable to replicate that behavior on Linux/Chrome.

After 25 files, the cache management system is supposed to delete the oldest file whenever you upload a new file, to prevent the number of files getting too crazy. But it's not supposed to prevent you from uploading a new file at all.

A button to clear the file cache sounds like a good idea and should be fairly simple to implement. I'll put it in the next update and I'll try to remember to let you know.

hydrusbeta commented 7 months ago

@vadimfedulov035 I have added a button for clearing all uploaded audio files. delete uploads button Note: It works on my local installation, but for some reason, it's not working on https://haysay.ai/. You can always just refresh the page to clear your uploads on the live website, though.

hydrusbeta commented 7 months ago

I have found and fixed the root cause of the issue on haysay.ai. The "delete all uploaded files" button works now.