hertogateis commited on
Commit
981c3bf
·
verified ·
1 Parent(s): 8fc467a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -123,12 +123,12 @@ else:
123
  else:
124
  st.write(f"No data to plot for the question: '{question}'")
125
 
126
- else:
127
  # Handle graph-related questions
128
- if 'count' in question.lower(): # Check if the question contains "count"
129
- # Extract the column name to count
130
- column_name = question.split('count')[-1].strip()
131
-
132
 
133
 
134
  if column_name in df.columns:
 
123
  else:
124
  st.write(f"No data to plot for the question: '{question}'")
125
 
126
+ else:
127
  # Handle graph-related questions
128
+ if is_count_query:
129
+ # Extract the column name to count
130
+ column_name = question.split('count')[-1].strip()
131
+
132
 
133
 
134
  if column_name in df.columns: