Zekun Wu commited on
Commit
225f4f1
1 Parent(s): b1f1bc4
Files changed (1) hide show
  1. pages/1_Generation_Demo.py +2 -2
pages/1_Generation_Demo.py CHANGED
@@ -39,8 +39,8 @@ if st.sidebar.button("Submit Model Info"):
39
 
40
  def add_row(df):
41
  # Add a new row with default or empty values at the end of the DataFrame
42
- new_row = {col: "" for col in df.columns}
43
- return df.append(new_row, ignore_index=True)
44
 
45
  def remove_row(df, index):
46
  # Remove a row based on the index provided
 
39
 
40
  def add_row(df):
41
  # Add a new row with default or empty values at the end of the DataFrame
42
+ new_row = pd.DataFrame([{col: "" for col in df.columns}])
43
+ return pd.concat([df, new_row], ignore_index=True)
44
 
45
  def remove_row(df, index):
46
  # Remove a row based on the index provided