Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix determine_output_filename function in api.py to handle appended numbers in file names #44

Closed
wants to merge 2 commits into from

Conversation

rmcc3
Copy link

@rmcc3 rmcc3 commented May 4, 2023

The determine_output_filename function in the api.py file was not returning the correct file name when files had an appended number. This caused issues in the Gradio UI where the audio preview was not updating to newly generated files with appended numbers in their names.

This commit fixes the issue by updating the determine_output_filename function to correctly handle appended numbers in file names. Now, the function properly returns the correct file name, and the UI audio preview updates as expected.

Fixes issue #43

@rmcc3
Copy link
Author

rmcc3 commented May 4, 2023

A little note: Should consider a ".editorconfig" that forces formatting to prevent the 100+ line "changes" as shown in the commit preview.

@rmcc3 rmcc3 marked this pull request as draft May 4, 2023 16:13
@rmcc3
Copy link
Author

rmcc3 commented May 4, 2023

Update: This change seems to have introduced a UI-breaking bug that seems to hit randomly. Will reopen once I find the cause.

Edit: See the below comment.

@rmcc3
Copy link
Author

rmcc3 commented May 4, 2023

So, it seems the issue is coming from "Silence Between Segment". Unrelated to this change. Just happened to appear. The issue is still present without the change.

@rmcc3 rmcc3 marked this pull request as ready for review May 4, 2023 21:16
@JonathanFly
Copy link
Owner

Thanks, I'll look at this tonight. Yeah the filename stuff is a mess all over. Rip it all out and simply, some day.

@JonathanFly
Copy link
Owner

Added an issue for the .editorconfig, so I don't forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants