Spaces:
Running
Running
| #!/usr/bin/env python3 | |
| """ | |
| Test script to demonstrate debug output | |
| """ | |
| import os | |
| from app import remove_bg, image_generator | |
| def test_debug_output(): | |
| """Test API calls to see debug output""" | |
| print("🧪 Testing Debug Output...") | |
| print("=" * 50) | |
| print("\n1️⃣ Testing Background Removal with debug output:") | |
| result = remove_bg("https://example.com/test-image.jpg") | |
| print(f"Result: {result}") | |
| print("\n2️⃣ Testing Image Generator with debug output:") | |
| result = image_generator("A beautiful sunset over mountains") | |
| print(f"Result: {result}") | |
| if __name__ == "__main__": | |
| test_debug_output() | |