hertogateis commited on
Commit
c5b17da
·
verified ·
1 Parent(s): 90ae8c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,8 +67,8 @@ else:
67
  with st.spinner():
68
  if st.button('Generate Graph'):
69
  try:
70
- # Ensure the question is a valid string
71
- if not isinstance(question, str) or not question.strip():
72
  st.error("Please enter a valid question in the form of text.")
73
  else:
74
  # Use TAPAS model to process the question
 
67
  with st.spinner():
68
  if st.button('Generate Graph'):
69
  try:
70
+ # Check if the question is a valid string (not empty or None)
71
+ if not question or not isinstance(question, str):
72
  st.error("Please enter a valid question in the form of text.")
73
  else:
74
  # Use TAPAS model to process the question