Spaces:
Running
Running
csv
Browse files
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 |
-
|
|
|
|
|
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
|