Omnibus commited on
Commit
c7ab6ed
·
verified ·
1 Parent(s): bae3744

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -162,7 +162,7 @@ def toggle_comments_off(r_name,check_list,token):
162
 
163
  with gr.Blocks(css=css) as build:
164
  save_state=gr.State()
165
- space_list=gr.State()
166
  with gr.Row(visible=False) as no:
167
  pass_box=gr.Textbox()
168
  pass_btn=gr.Button()
@@ -208,7 +208,7 @@ with gr.Blocks(css=css) as build:
208
  with gr.Tab("Controls"):
209
  with gr.Row():
210
  with gr.Column():
211
- check_list=gr.CheckboxGroup(choices=space_list)
212
  com_off = gr.Button("Turn OFF Commenting")
213
  com_on = gr.Button("Turn ON Commenting")
214
 
 
162
 
163
  with gr.Blocks(css=css) as build:
164
  save_state=gr.State()
165
+ space_list=gr.State([])
166
  with gr.Row(visible=False) as no:
167
  pass_box=gr.Textbox()
168
  pass_btn=gr.Button()
 
208
  with gr.Tab("Controls"):
209
  with gr.Row():
210
  with gr.Column():
211
+ check_list=gr.CheckboxGroup(choices=[s for s in space_list])
212
  com_off = gr.Button("Turn OFF Commenting")
213
  com_on = gr.Button("Turn ON Commenting")
214