Spaces:
Runtime error
Runtime error
camphong24032002
commited on
Commit
·
b2c3632
1
Parent(s):
67c5f9c
Test
Browse files
app.py
CHANGED
@@ -25,9 +25,9 @@ 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
|
29 |
for title, col in zip(titles, cols):
|
30 |
-
text.append(concat_content(title,
|
31 |
text.append('')
|
32 |
return '<br>'.join(text)
|
33 |
|
|
|
25 |
text = []
|
26 |
titles = ["Product ID", "Product Name", "Gender", "Price (INR)", "Primary Color"]
|
27 |
cols = ["ProductID", "ProductName", "Gender", "Price (INR)", "PrimaryColor"]
|
28 |
+
for idx in range(df.shape[0]):
|
29 |
for title, col in zip(titles, cols):
|
30 |
+
text.append(concat_content(title, df[col].iloc[idx]))
|
31 |
text.append('')
|
32 |
return '<br>'.join(text)
|
33 |
|