Update app.py
Browse files
app.py
CHANGED
|
@@ -82,6 +82,8 @@ if TYPE_CHECKING:
|
|
| 82 |
|
| 83 |
|
| 84 |
|
|
|
|
|
|
|
| 85 |
type StrPath = str | PathLike[str]
|
| 86 |
|
| 87 |
type Json = Mapping[str, Json] | Sequence[Json] | str | int | float | bool | None
|
|
@@ -410,7 +412,6 @@ snapshot_download(repo_id=repo_id, local_dir=dump_path, token=hf_token)
|
|
| 410 |
|
| 411 |
config_name = "default" #os.environ.get("URVC_CONFIG")
|
| 412 |
cookiefile = os.environ.get("YT_COOKIEFILE")
|
| 413 |
-
total_config = load_config(config_name, TotalConfig) if config_name else TotalConfig()
|
| 414 |
|
| 415 |
|
| 416 |
|
|
@@ -1124,6 +1125,9 @@ class TotalConfig(BaseModel):
|
|
| 1124 |
|
| 1125 |
|
| 1126 |
|
|
|
|
|
|
|
|
|
|
| 1127 |
def render_app() -> gr.Blocks:
|
| 1128 |
"""
|
| 1129 |
Render the Ultimate RVC web application.
|
|
|
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
+
|
| 86 |
+
|
| 87 |
type StrPath = str | PathLike[str]
|
| 88 |
|
| 89 |
type Json = Mapping[str, Json] | Sequence[Json] | str | int | float | bool | None
|
|
|
|
| 412 |
|
| 413 |
config_name = "default" #os.environ.get("URVC_CONFIG")
|
| 414 |
cookiefile = os.environ.get("YT_COOKIEFILE")
|
|
|
|
| 415 |
|
| 416 |
|
| 417 |
|
|
|
|
| 1125 |
|
| 1126 |
|
| 1127 |
|
| 1128 |
+
total_config = load_config(config_name, TotalConfig) if config_name else TotalConfig()
|
| 1129 |
+
|
| 1130 |
+
|
| 1131 |
def render_app() -> gr.Blocks:
|
| 1132 |
"""
|
| 1133 |
Render the Ultimate RVC web application.
|