Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,8 +107,8 @@ else:
|
|
| 107 |
st.success(f"Here is the graph of column '{column}'.")
|
| 108 |
else:
|
| 109 |
st.warning(f"Column '{column}' not found in the data.")
|
| 110 |
-
# Skip
|
| 111 |
-
|
| 112 |
|
| 113 |
# Process TAPAS-related questions if it's not a graph query
|
| 114 |
raw_answer = tqa(table=df, query=question, truncation=True)
|
|
|
|
| 107 |
st.success(f"Here is the graph of column '{column}'.")
|
| 108 |
else:
|
| 109 |
st.warning(f"Column '{column}' not found in the data.")
|
| 110 |
+
# Skip TAPAS processing if it's a graph query
|
| 111 |
+
st.stop() # Use `st.stop()` to exit the flow for graph queries and prevent TAPAS processing.
|
| 112 |
|
| 113 |
# Process TAPAS-related questions if it's not a graph query
|
| 114 |
raw_answer = tqa(table=df, query=question, truncation=True)
|