Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 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:
|