Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -210,12 +210,9 @@ if run:
|
|
210 |
st.stop()
|
211 |
|
212 |
# Prepare data
|
213 |
-
|
214 |
-
|
215 |
-
|
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)
|