inie2003 commited on
Commit
cf4cc4f
1 Parent(s): fa2fb9a

fixed exception error

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -150,14 +150,13 @@ def main():
150
  else:
151
  st.write("No results found.")
152
 
153
- except Exception as e:
 
 
 
154
  st.error(f"Search failed: {e}")
155
 
156
- except Exception as e:
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__":