sagawa commited on
Commit
05b9666
·
verified ·
1 Parent(s): 4a51867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -210,12 +210,9 @@ if run:
210
  st.stop()
211
 
212
  # Prepare data
213
- try:
214
- input_df = pd.read_csv(uploaded)
215
- input_df = preprocess_df(input_df, drop_duplicates=False)
216
- except Exception as e:
217
- st.error(f"Failed to preprocess input: {e}")
218
- st.stop()
219
 
220
  # Dataset & loader
221
  dataset = ReactionT5Dataset(CFG, input_df)
 
210
  st.stop()
211
 
212
  # Prepare data
213
+ input_df = pd.read_csv(uploaded)
214
+ input_df = preprocess_df(input_df, drop_duplicates=False)
215
+
 
 
 
216
 
217
  # Dataset & loader
218
  dataset = ReactionT5Dataset(CFG, input_df)