Ryan commited on
Commit
2094672
·
1 Parent(s): 769095a
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -136,7 +136,20 @@ def create_app():
136
  status_message = gr.Markdown(visible=False)
137
 
138
  # Define a helper function to extract parameter values and run the analysis
139
- def run_analysis(dataset, selected_analysis, ngram_n, topic_count):
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  try:
141
  if not dataset or "entries" not in dataset or not dataset["entries"]:
142
  return (
 
136
  status_message = gr.Markdown(visible=False)
137
 
138
  # Define a helper function to extract parameter values and run the analysis
139
+ def run_analysis(dataset, selected_analysis, ngram_n, topic_count, *args):
140
+ """
141
+ Run the analysis with the selected parameters
142
+
143
+ Args:
144
+ dataset (dict): The dataset state
145
+ selected_analysis (str): The selected analysis type
146
+ ngram_n (str or int): N value for n-gram analysis
147
+ topic_count (str or int): Number of topics for topic modeling
148
+ *args: Additional arguments that might be passed by Gradio
149
+
150
+ Returns:
151
+ tuple: Analysis results and UI component updates
152
+ """
153
  try:
154
  if not dataset or "entries" not in dataset or not dataset["entries"]:
155
  return (