Spaces:
Sleeping
Sleeping
Ryan
commited on
Commit
·
6c6550e
1
Parent(s):
eabf2c4
update
Browse files
app.py
CHANGED
@@ -76,6 +76,10 @@ def create_app():
|
|
76 |
analysis_output = analysis_components[3]
|
77 |
ngram_n = analysis_components[4]
|
78 |
topic_count = analysis_components[5]
|
|
|
|
|
|
|
|
|
79 |
|
80 |
# Create visualization components
|
81 |
visualization_components = create_visualization_components()
|
@@ -83,7 +87,7 @@ def create_app():
|
|
83 |
# Connect the run button to the analysis function
|
84 |
run_analysis_btn.click(
|
85 |
fn=run_analysis,
|
86 |
-
inputs=[dataset_state, analysis_options, ngram_n, ngram_top, topic_count],
|
87 |
outputs=visualization_components
|
88 |
)
|
89 |
|
|
|
76 |
analysis_output = analysis_components[3]
|
77 |
ngram_n = analysis_components[4]
|
78 |
topic_count = analysis_components[5]
|
79 |
+
|
80 |
+
# Add the missing ngram_top parameter
|
81 |
+
ngram_top = gr.Slider(minimum=5, maximum=50, value=20, step=5,
|
82 |
+
label="Number of Top N-grams to Display")
|
83 |
|
84 |
# Create visualization components
|
85 |
visualization_components = create_visualization_components()
|
|
|
87 |
# Connect the run button to the analysis function
|
88 |
run_analysis_btn.click(
|
89 |
fn=run_analysis,
|
90 |
+
inputs=[dataset_state, analysis_options, ngram_n, ngram_top, topic_count],
|
91 |
outputs=visualization_components
|
92 |
)
|
93 |
|