Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1017,12 +1017,12 @@ def create_ui() -> gr.Blocks:
|
|
1017 |
return gr.update(visible=False), hf_url
|
1018 |
return gr.update(visible=False), ""
|
1019 |
|
1020 |
-
def handle_explore_repo(repo_id: str) -> Tuple[Any, Any,
|
1021 |
"""Handle navigating to the repo explorer for the repository."""
|
1022 |
if repo_id and repo_id.strip():
|
1023 |
logger.info(f"User chose to explore: {repo_id.strip()}")
|
1024 |
-
return gr.update(visible=False), gr.update(selected="repo_explorer_tab"), repo_id.strip()
|
1025 |
-
return gr.update(visible=False), gr.update(),
|
1026 |
|
1027 |
def handle_cancel_modal() -> Any:
|
1028 |
"""Handle closing the modal."""
|
|
|
1017 |
return gr.update(visible=False), hf_url
|
1018 |
return gr.update(visible=False), ""
|
1019 |
|
1020 |
+
def handle_explore_repo(repo_id: str) -> Tuple[Any, Any, Any]:
|
1021 |
"""Handle navigating to the repo explorer for the repository."""
|
1022 |
if repo_id and repo_id.strip():
|
1023 |
logger.info(f"User chose to explore: {repo_id.strip()}")
|
1024 |
+
return gr.update(visible=False), gr.update(selected="repo_explorer_tab"), gr.update(value=repo_id.strip())
|
1025 |
+
return gr.update(visible=False), gr.update(), gr.update()
|
1026 |
|
1027 |
def handle_cancel_modal() -> Any:
|
1028 |
"""Handle closing the modal."""
|