yjernite commited on
Commit
277f906
·
1 Parent(s): 674a598

change often

Browse files
Files changed (1) hide show
  1. app.py +7 -23
app.py CHANGED
@@ -151,33 +151,17 @@ with gr.Blocks() as demo:
151
  interactive=True,
152
  )
153
  with gr.Column(scale=3):
154
- # gr.Markdown("")
155
- # order = gr.Dropdown(
156
- # ["entropy", "cluster/sum of clusters"],
157
- # value="entropy",
158
- # label="Order rows by:",
159
- # interactive=True,
160
- # )
161
  with gr.Row():
162
  table = gr.HTML(
163
  label="Profession assignment per cluster", wrap=True
164
  )
165
- # with gr.Row():
166
- # labor_table = gr.HTML(
167
- # label="Labor Bureau Statistics per profession", wrap=True
168
- # )
169
- profession_choices_overview.change(
170
- make_profession_table,
171
- [num_clusters, profession_choices_overview, model_choices],
172
- table,
173
- queue=False,
174
- )
175
- # demo.load(
176
- # make_profession_table,
177
- # [num_clusters, profession_choices_1, model_choices],
178
- # [table, labor_table],
179
- # queue=False,
180
- # )
181
 
182
  # with gr.Accordion("Tag Frequencies", open=False):
183
 
 
151
  interactive=True,
152
  )
153
  with gr.Column(scale=3):
 
 
 
 
 
 
 
154
  with gr.Row():
155
  table = gr.HTML(
156
  label="Profession assignment per cluster", wrap=True
157
  )
158
+ for var in [num_clusters, model_choices, profession_choices_overview]:
159
+ var.change(
160
+ make_profession_table,
161
+ [num_clusters, profession_choices_overview, model_choices],
162
+ table,
163
+ queue=False,
164
+ )
 
 
 
 
 
 
 
 
 
165
 
166
  # with gr.Accordion("Tag Frequencies", open=False):
167