hertogateis commited on
Commit
8fc467a
·
verified ·
1 Parent(s): 85ce2bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -125,7 +125,10 @@ else:
125
 
126
  else:
127
  # Handle graph-related questions
128
-
 
 
 
129
 
130
 
131
  if column_name in df.columns:
 
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: