Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|