hertogateis commited on
Commit
c26d56a
·
verified ·
1 Parent(s): e525a54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 the TAPAS processing if it's a graph query
111
- return # Simply return to exit this block for graph queries
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)