From 898231eefdb3c35a143a5dbf9985faf6a09a4718 Mon Sep 17 00:00:00 2001 From: remsky Date: Sun, 12 Jan 2025 21:34:13 -0700 Subject: [PATCH] fix: update .gitignore and suppress erramt Gradio warnings in app.py --- .gitignore | 7 +++++-- ui/app.py | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 59552ae..f4c5651 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ __pycache__ *.pyc *.pyo *.pyd +*.pt .Python *.py[cod] *$py.class @@ -29,7 +30,8 @@ ENV/ # Project specific examples/ Kokoro-82M/ -ui/ +ui/data + tests/ *.md *.txt @@ -42,4 +44,5 @@ docker-compose* *.egg-info *.pt *.wav -*.tar* \ No newline at end of file +*.tar* + diff --git a/ui/app.py b/ui/app.py index 96aae35..8920a7a 100644 --- a/ui/app.py +++ b/ui/app.py @@ -1,3 +1,9 @@ +import warnings + +# Filter out Gradio Dropdown warnings about values not in choices +#TODO: Warning continues to be displayed, though it isn't breaking anything +warnings.filterwarnings('ignore', category=UserWarning, module='gradio.components.dropdown') + from lib.interface import create_interface if __name__ == "__main__":