pi194046 commited on
Commit
9eb73e2
1 Parent(s): 49a16d9

resolving split issue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -215,11 +215,12 @@ with tab3:
215
 
216
  # Convert the list of dictionaries to a DataFrame
217
  df = pd.DataFrame(data)
 
218
  df = df["page_content"]
219
 
220
  # Display the DataFrame in Streamlit as an interactive dataframe
221
  #st.dataframe(df)
222
- df = df.str.split(' ##### ', 1).str[1].str.strip()
223
 
224
  # Alternatively, display it as a static table
225
  st.table(df)
 
215
 
216
  # Convert the list of dictionaries to a DataFrame
217
  df = pd.DataFrame(data)
218
+ df["page_content"]=df["page_content"].str.split(' ##### ', 1).str[1].str.strip()
219
  df = df["page_content"]
220
 
221
  # Display the DataFrame in Streamlit as an interactive dataframe
222
  #st.dataframe(df)
223
+
224
 
225
  # Alternatively, display it as a static table
226
  st.table(df)