fixed exception error
Browse files
app.py
CHANGED
@@ -150,14 +150,13 @@ def main():
|
|
150 |
else:
|
151 |
st.write("No results found.")
|
152 |
|
153 |
-
|
|
|
|
|
|
|
154 |
st.error(f"Search failed: {e}")
|
155 |
|
156 |
-
|
157 |
-
if 'None' in e:
|
158 |
-
st.warning("Please Click Load Dataset")
|
159 |
-
else:
|
160 |
-
st.error(f"Failed to load dataset: {e}")
|
161 |
|
162 |
|
163 |
if __name__ == "__main__":
|
|
|
150 |
else:
|
151 |
st.write("No results found.")
|
152 |
|
153 |
+
except Exception as e:
|
154 |
+
if 'None' in e:
|
155 |
+
st.warning("Please Click Load Dataset")
|
156 |
+
else:
|
157 |
st.error(f"Search failed: {e}")
|
158 |
|
159 |
+
|
|
|
|
|
|
|
|
|
160 |
|
161 |
|
162 |
if __name__ == "__main__":
|