Spaces:
Sleeping
Sleeping
Richard Young
Claude
commited on
Commit
Β·
c028069
1
Parent(s):
9f3663d
Improve hidden message display formatting
Browse files- Wrap extracted message in code block for better visibility
- Add clear section headers with markdown H2
- Add horizontal rules for better visual separation
- Make it clearer where the extracted message appears
- Improves UX for Extract Data tab
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -233,18 +233,22 @@ def extract_hidden_data(image, password, bits_per_channel):
|
|
| 233 |
result = f"""
|
| 234 |
β
**Data Successfully Extracted!**
|
| 235 |
|
| 236 |
-
π **Hidden Message:**
|
| 237 |
-
|
| 238 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
{extracted_data}
|
|
|
|
|
|
|
| 240 |
---
|
| 241 |
|
| 242 |
-
π
|
| 243 |
- **Data size:** {len(extracted_data)} characters
|
| 244 |
- **Decryption:** {"π Used" if pwd else "π Not needed"}
|
| 245 |
- **LSB depth:** {bits_per_channel} bit(s) per channel
|
| 246 |
|
| 247 |
-
π‘
|
| 248 |
"""
|
| 249 |
return result
|
| 250 |
|
|
|
|
| 233 |
result = f"""
|
| 234 |
β
**Data Successfully Extracted!**
|
| 235 |
|
|
|
|
|
|
|
| 236 |
---
|
| 237 |
+
|
| 238 |
+
## π Hidden Message:
|
| 239 |
+
|
| 240 |
+
```
|
| 241 |
{extracted_data}
|
| 242 |
+
```
|
| 243 |
+
|
| 244 |
---
|
| 245 |
|
| 246 |
+
## π Extraction Info:
|
| 247 |
- **Data size:** {len(extracted_data)} characters
|
| 248 |
- **Decryption:** {"π Used" if pwd else "π Not needed"}
|
| 249 |
- **LSB depth:** {bits_per_channel} bit(s) per channel
|
| 250 |
|
| 251 |
+
π‘ **The message is shown in the code block above** - it has been successfully recovered from the image!
|
| 252 |
"""
|
| 253 |
return result
|
| 254 |
|