-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add gradio UI #11
Add gradio UI #11
Conversation
cloned_speakers = {} | ||
|
||
print("Preparing file structure...") | ||
if not os.path.exists(OUTPUT): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use os.makedirs(..., exist_ok=True)
, that way the folder structure is also repaired if it's incomplete.
|
||
print("Preparing file structure...") | ||
if not os.path.exists(OUTPUT): | ||
os.mkdir(OUTPUT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side effects should never run top-level, always be contained inside an if __name__ == '__main__':
block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but I couldn't make it work, here I define STUDIO_SPEAKERS for example that I use below, if I move it in the if main I get NameError: name 'STUDIO_SPEAKERS' is not defined
. Maybe we can update in the next PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the inline comments it looks good to me, but I don't know much about Gradio.
No description provided.