Spaces:
Runtime error
Runtime error
Riddhi Bhagwat
commited on
Commit
·
27df61b
1
Parent(s):
15efe4a
minor debugging
Browse files- app/app.py +4 -1
app/app.py
CHANGED
|
@@ -1149,6 +1149,9 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
| 1149 |
|
| 1150 |
# toggle button for admin panel?
|
| 1151 |
admin_toggle = gr.Button("Admin Controls", visible=True)
|
|
|
|
|
|
|
|
|
|
| 1152 |
|
| 1153 |
set_count_btn.click(
|
| 1154 |
set_language_count,
|
|
@@ -1157,7 +1160,7 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
| 1157 |
)
|
| 1158 |
|
| 1159 |
admin_toggle.click(
|
| 1160 |
-
|
| 1161 |
outputs=admin_panel
|
| 1162 |
)
|
| 1163 |
|
|
|
|
| 1149 |
|
| 1150 |
# toggle button for admin panel?
|
| 1151 |
admin_toggle = gr.Button("Admin Controls", visible=True)
|
| 1152 |
+
def toggle_admin_view():
|
| 1153 |
+
return gr.update(visible=True)
|
| 1154 |
+
|
| 1155 |
|
| 1156 |
set_count_btn.click(
|
| 1157 |
set_language_count,
|
|
|
|
| 1160 |
)
|
| 1161 |
|
| 1162 |
admin_toggle.click(
|
| 1163 |
+
toggle_admin_view,
|
| 1164 |
outputs=admin_panel
|
| 1165 |
)
|
| 1166 |
|