vishakhad30 commited on
Commit
01cf3cd
·
verified ·
1 Parent(s): 6a7587d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -476,15 +476,15 @@ def read_uploaded_workbook(file):
476
  if pd.notna(row[col]):
477
  if idx == 0:
478
  # Column B (main image)
479
- name = f"{key}_MAIN"
480
- else:
481
- # Remaining images
482
- name = f"{key}_PT{idx:02d}"
483
-
484
- data.append({
485
- "url": str(row[col]).strip(),
486
- "name": name
487
- })
488
  idx += 1
489
  return data, f"✅ Fetched {len(data)} image link(s)"
490
  except Exception as e:
 
476
  if pd.notna(row[col]):
477
  if idx == 0:
478
  # Column B (main image)
479
+ name = f"{key}_MAIN"
480
+ else:
481
+ # Remaining images
482
+ name = f"{key}_PT{idx:02d}"
483
+
484
+ data.append({
485
+ "url": str(row[col]).strip(),
486
+ "name": name
487
+ })
488
  idx += 1
489
  return data, f"✅ Fetched {len(data)} image link(s)"
490
  except Exception as e: