Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,12 +123,12 @@ else:
|
|
123 |
else:
|
124 |
st.write(f"No data to plot for the question: '{question}'")
|
125 |
|
126 |
-
|
127 |
# Handle graph-related questions
|
128 |
-
|
129 |
-
|
130 |
-
|
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:
|