Andinda commited on
Commit
02c44c0
·
verified ·
1 Parent(s): 9e09c29
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -50,8 +50,11 @@ elif input_method == "Upload CSV File":
50
  if uploaded_file is not None:
51
  df_csv = pd.read_csv(uploaded_file)
52
  st.write(df_csv)
 
53
  text_column = st.selectbox("Select the column containing text", df_csv.columns)
54
- # input_text = df_csv[text_column].iloc[0] # Taking the first row as input for simplicity
 
 
55
 
56
 
57
  @st.cache_resource
 
50
  if uploaded_file is not None:
51
  df_csv = pd.read_csv(uploaded_file)
52
  st.write(df_csv)
53
+ lines = []
54
  text_column = st.selectbox("Select the column containing text", df_csv.columns)
55
+ for index, row in df_csv.iterrows():
56
+ st.write(f"Processing row {index + 1}:")
57
+ input_text = row[text_column]
58
 
59
 
60
  @st.cache_resource