Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,9 +82,8 @@ else:
|
|
82 |
is_count_query = False
|
83 |
|
84 |
# Check if the question contains "graph"
|
|
|
85 |
if 'graph' in question.lower():
|
86 |
-
is_count_query = True
|
87 |
-
elif 'graph' in question.lower():
|
88 |
is_graph_query = True
|
89 |
|
90 |
# Process the answer using TAPAS and T5
|
@@ -126,9 +125,8 @@ else:
|
|
126 |
|
127 |
else:
|
128 |
# Handle graph-related questions
|
129 |
-
|
130 |
-
|
131 |
-
column_name = question.split('count')[-1].strip()
|
132 |
|
133 |
if column_name in df.columns:
|
134 |
# Ask TAPAS to count the rows for this specific column
|
|
|
82 |
is_count_query = False
|
83 |
|
84 |
# Check if the question contains "graph"
|
85 |
+
|
86 |
if 'graph' in question.lower():
|
|
|
|
|
87 |
is_graph_query = True
|
88 |
|
89 |
# Process the answer using TAPAS and T5
|
|
|
125 |
|
126 |
else:
|
127 |
# Handle graph-related questions
|
128 |
+
|
129 |
+
|
|
|
130 |
|
131 |
if column_name in df.columns:
|
132 |
# Ask TAPAS to count the rows for this specific column
|