Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -78,12 +78,12 @@ with gr.Blocks() as app:
|
|
78 |
|
79 |
# Button to switch to "View Tasks" tab
|
80 |
go_to_view_tab.click(
|
81 |
-
|
82 |
inputs=None,
|
83 |
-
outputs=[tabs]
|
84 |
-
fn_kwargs={"tab_name": "View Tasks"}
|
85 |
)
|
86 |
|
|
|
87 |
with gr.Tab("View Tasks"):
|
88 |
gr.Markdown("## View Submitted Tasks")
|
89 |
|
@@ -111,10 +111,10 @@ with gr.Blocks() as app:
|
|
111 |
|
112 |
# Button to switch to "Submit Task" tab
|
113 |
go_to_submit_tab.click(
|
114 |
-
|
115 |
inputs=None,
|
116 |
-
outputs=[tabs]
|
117 |
-
fn_kwargs={"tab_name": "Submit Task"}
|
118 |
)
|
119 |
|
|
|
120 |
app.launch()
|
|
|
78 |
|
79 |
# Button to switch to "View Tasks" tab
|
80 |
go_to_view_tab.click(
|
81 |
+
lambda: gr.Tabs.update(visible_tab="View Tasks"),
|
82 |
inputs=None,
|
83 |
+
outputs=[tabs]
|
|
|
84 |
)
|
85 |
|
86 |
+
|
87 |
with gr.Tab("View Tasks"):
|
88 |
gr.Markdown("## View Submitted Tasks")
|
89 |
|
|
|
111 |
|
112 |
# Button to switch to "Submit Task" tab
|
113 |
go_to_submit_tab.click(
|
114 |
+
lambda: gr.Tabs.update(visible_tab="Submit Task"),
|
115 |
inputs=None,
|
116 |
+
outputs=[tabs]
|
|
|
117 |
)
|
118 |
|
119 |
+
|
120 |
app.launch()
|