Spaces:
Runtime error
Runtime error
camphong24032002
commited on
Commit
·
67c5f9c
1
Parent(s):
709b70b
Test
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def df_to_text(df):
|
|
25 |
text = []
|
26 |
titles = ["Product ID", "Product Name", "Gender", "Price (INR)", "Primary Color"]
|
27 |
cols = ["ProductID", "ProductName", "Gender", "Price (INR)", "PrimaryColor"]
|
28 |
-
for data in df:
|
29 |
for title, col in zip(titles, cols):
|
30 |
text.append(concat_content(title, data[col]))
|
31 |
text.append('')
|
|
|
25 |
text = []
|
26 |
titles = ["Product ID", "Product Name", "Gender", "Price (INR)", "Primary Color"]
|
27 |
cols = ["ProductID", "ProductName", "Gender", "Price (INR)", "PrimaryColor"]
|
28 |
+
for data in df.values:
|
29 |
for title, col in zip(titles, cols):
|
30 |
text.append(concat_content(title, data[col]))
|
31 |
text.append('')
|