meg HF staff commited on
Commit
140754f
1 Parent(s): 2fa1451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -16,11 +16,10 @@ def update(text_dataset):
16
  sum_occ = np.sum(co_occurrences.todense(), axis=0)
17
  print('Sum of word-word occurrences:')
18
  print(sum_occ)
19
- return sum_occ
20
 
21
  with gr.Blocks() as app:
22
  gr.Markdown("Click **Run** to start calculating.")
23
  btn = gr.Button("Run")
24
- btn.click(fn=update, inputs=text_dataset, outputs=out)
25
 
26
  app.launch()
 
16
  sum_occ = np.sum(co_occurrences.todense(), axis=0)
17
  print('Sum of word-word occurrences:')
18
  print(sum_occ)
 
19
 
20
  with gr.Blocks() as app:
21
  gr.Markdown("Click **Run** to start calculating.")
22
  btn = gr.Button("Run")
23
+ btn.click(fn=update, inputs=text_dataset)
24
 
25
  app.launch()