hertogateis commited on
Commit
eaa1fa5
·
verified ·
1 Parent(s): 97b07c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -142,7 +142,9 @@ else:
142
  st.success(f"Here is the graph of column '{column}'.")
143
  else:
144
  st.warning(f"Column '{column}' not found in the data.")
145
- return # Skip TAPAS processing for graph-related queries
 
 
146
 
147
  except Exception as e:
148
  st.warning(f"Error processing question or generating answer: {str(e)}")
 
142
  st.success(f"Here is the graph of column '{column}'.")
143
  else:
144
  st.warning(f"Column '{column}' not found in the data.")
145
+
146
+ # Stop further execution after generating the graph
147
+ st.stop() # This halts further execution
148
 
149
  except Exception as e:
150
  st.warning(f"Error processing question or generating answer: {str(e)}")