venkatesh commited on
Commit
cd2aecf
·
1 Parent(s): de092c8

FIXED TEXT

Browse files
Files changed (1) hide show
  1. tab8.py +33 -44
tab8.py CHANGED
@@ -590,47 +590,36 @@ def regenerate_reports_tool():
590
 
591
  with st.expander("📖 Instructions"):
592
  st.markdown("""
593
- **What is Tab 6 (Re Run Matrix)?**
594
-
595
- This tool regenerates PDF and Excel reports from a Tab 5 output folder that may contain manually added images.
596
-
597
- **Key Features:**
598
- - **Deduplication**: Files with same name but different extensions (e.g., video.png + video.mp4) are counted only ONCE
599
- - **Priority**: Non-image formats (mp4, mov, gif, etc.) take priority over image formats when duplicates exist
600
- - **Highlighting**: Non-image formats are highlighted in yellow in the Excel output
601
- - **Original Folder Names**: Preserves actual folder names from your input, not just "17Folder"
602
-
603
- **Use Case:**
604
- 1. You ran Tab 5 and got an output folder with images, PDF, and Excel reports
605
- 2. You manually added new images to that folder (following the same naming convention)
606
- 3. You want to regenerate the reports to include the new images
607
-
608
- **How to use:**
609
- 1. Take your Tab 5 output folder (the one with processed_files/ and reports/ folders)
610
- 2. **Important:** Make sure BOTH the PDF and Excel reports are included in the ZIP
611
- 3. Add any new images you want (following the naming convention)
612
- 4. ZIP the entire folder
613
- 5. Upload the ZIP here
614
- 6. Click "Regenerate Reports"
615
- 7. Download the updated reports (with today's date in the filename)
616
-
617
- **Naming Convention for New Files:**
618
- All files must follow this pattern: `{markennummer}B{blocknummer}{marke}{count_str}{cleaned}{ext}`
619
-
620
- Example: `01B01brand01filename.png`
621
- - `01` = brand number (markennummer)
622
- - `B01` = block/folder number
623
- - `brand` = brand name
624
- - `01` = sequential counter
625
- - `filename` = cleaned name
626
- - `.png` = file extension
627
-
628
- **Important Notes:**
629
- - The tool preserves any manual folder structure changes you made in the Excel file
630
- - Files with the same name but different extensions are handled intelligently:
631
- - Non-image formats (mp4, mov, gif, etc.) take priority over images
632
- - Only ONE file is counted and displayed (no duplicates)
633
- - Non-image formats are highlighted in yellow in the Excel
634
- - Report files are automatically named with the current date (YYYYMMDD format)
635
- - The tool will skip any existing report files when processing
636
- """)
 
590
 
591
  with st.expander("📖 Instructions"):
592
  st.markdown("""
593
+ **What is Tab 6 (Re Run Matrix)?**
594
+
595
+ Regenerates PDF and Excel reports from Tab 5 output after you've manually added new files.
596
+
597
+ **When to use:**
598
+ 1. You have Tab 5 output with reports
599
+ 2. You manually added new files (following naming convention)
600
+ 3. You want updated reports with today's date
601
+
602
+ **How to use:**
603
+ 1. Take your Tab 5 output folder (must include both PDF and Excel reports)
604
+ 2. Add any new files following the naming convention
605
+ 3. ZIP the entire folder
606
+ 4. Upload and click "Regenerate Reports"
607
+ 5. Download updated reports
608
+
609
+ **Naming Convention:**
610
+ `{markennummer}B{blocknummer}{marke}{count_str}{cleaned}{ext}`
611
+
612
+ Example: `01B01dove01bodylotion.png`
613
+ - `01` = brand number
614
+ - `B01` = block/folder number
615
+ - `dove` = brand name
616
+ - `01` = sequential counter
617
+ - `bodylotion` = cleaned name
618
+ - `.png` = file extension
619
+
620
+ **Key Features:**
621
+ - **Deduplication**: Same filename with different extensions counted only once
622
+ - **Priority**: Non-image formats (mp4, mov, gif, txt) prioritized over images
623
+ - **Highlighting**: Non-image formats highlighted in yellow in Excel
624
+ - **Preserves**: Manual folder structure changes from Excel file
625
+ """)