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

Add gradio UI #11

Merged
merged 9 commits into from
Dec 12, 2023
Merged

Add gradio UI #11

merged 9 commits into from
Dec 12, 2023

Conversation

WeberJulian
Copy link
Contributor

No description provided.

cloned_speakers = {}

print("Preparing file structure...")
if not os.path.exists(OUTPUT):
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

@reuben reuben left a 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.

@WeberJulian WeberJulian merged commit 7eb6bc2 into main Dec 12, 2023
3 checks passed
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.

2 participants