hertogateis commited on
Commit
85ce2bb
·
verified ·
1 Parent(s): 9e0bc1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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
- if is_count_query:
130
- # Extract the column name to count
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