Spaces:
Sleeping
Sleeping
fruitpicker01
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
|
3 |
# Функция для смены вкладки
|
4 |
def change_tab(id):
|
5 |
-
return gr.Tabs
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
with gr.Tabs() as tabs:
|
|
|
2 |
|
3 |
# Функция для смены вкладки
|
4 |
def change_tab(id):
|
5 |
+
return gr.Tabs(selected=id)
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
with gr.Tabs() as tabs:
|