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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -81,8 +81,8 @@ else:
81
  is_graph_query = False
82
  is_count_query = False
83
 
84
- # Check if the question contains "count"
85
- if 'count' in question.lower():
86
  is_count_query = True
87
  elif 'graph' in question.lower():
88
  is_graph_query = True
@@ -109,8 +109,8 @@ else:
109
  st.write(f"Coordinates: {coordinates}")
110
  st.write(f"Cells: {cells}")
111
 
112
- # If TAPAS is returning a list of numbers for "average" like you mentioned
113
- if "average" in question.lower() and cells:
114
  # Assuming cells are numeric values that can be plotted in a graph
115
  plot_data = [float(cell) for cell in cells] # Convert cells to numeric data
116
 
 
81
  is_graph_query = False
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
 
109
  st.write(f"Coordinates: {coordinates}")
110
  st.write(f"Cells: {cells}")
111
 
112
+ # If TAPAS is returning a list of numbers for "graph" like you mentioned
113
+ if "graph" in question.lower() and cells:
114
  # Assuming cells are numeric values that can be plotted in a graph
115
  plot_data = [float(cell) for cell in cells] # Convert cells to numeric data
116