Spaces:
No application file
No application file
Update app.py
Browse files
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
|
| 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()
|