camphong24032002 commited on
Commit
b2c3632
·
1 Parent(s): 67c5f9c
Files changed (1) hide show
  1. app.py +2 -2
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 data in df.values:
29
  for title, col in zip(titles, cols):
30
- text.append(concat_content(title, data[col]))
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