Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 "
|
85 |
-
if '
|
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 "
|
113 |
-
if "
|
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 |
|