Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,8 @@ else:
|
|
67 |
with st.spinner():
|
68 |
if st.button('Generate Graph'):
|
69 |
try:
|
70 |
-
#
|
71 |
-
if not
|
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
|