Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
ui.py
CHANGED
|
@@ -275,12 +275,18 @@ def build_interface() -> gr.Blocks:
|
|
| 275 |
|
| 276 |
zip_btn.click(
|
| 277 |
fn=lambda: set_interactivity(False), outputs=action_buttons
|
|
|
|
|
|
|
| 278 |
).then(
|
| 279 |
fn=zip_wrapper,
|
| 280 |
inputs=[engine_state],
|
| 281 |
outputs=[download_file]
|
| 282 |
).then(
|
| 283 |
fn=lambda: set_interactivity(True), outputs=action_buttons
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
)
|
| 285 |
|
| 286 |
repo_name_input.change(
|
|
|
|
| 275 |
|
| 276 |
zip_btn.click(
|
| 277 |
fn=lambda: set_interactivity(False), outputs=action_buttons
|
| 278 |
+
).then(
|
| 279 |
+
fn=lambda: gr.update(interactive=False), outputs=push_to_hub_btn
|
| 280 |
).then(
|
| 281 |
fn=zip_wrapper,
|
| 282 |
inputs=[engine_state],
|
| 283 |
outputs=[download_file]
|
| 284 |
).then(
|
| 285 |
fn=lambda: set_interactivity(True), outputs=action_buttons
|
| 286 |
+
).then(
|
| 287 |
+
fn=update_hub_interactive,
|
| 288 |
+
inputs=[engine_state, username_state],
|
| 289 |
+
outputs=[repo_name_input, push_to_hub_btn]
|
| 290 |
)
|
| 291 |
|
| 292 |
repo_name_input.change(
|