Spaces:
Sleeping
Sleeping
Download test_firebase.py from baljot07/studiq-backend: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/baljot07/studiq-backend/resolve/main/test_firebase.py
- Command line
-
hf download hf://spaces/baljot07/studiq-backend/test_firebase.py
-
curl -L -o test_firebase.py https://huggingface.co/spaces/baljot07/studiq-backend/resolve/main/test_firebase.py
426 Bytes
| from app.services.firebase_service import ensure_initialized | |
| import firebase_admin | |
| def test_firebase_init(): | |
| try: | |
| print("Initializing Firebase Admin SDK...") | |
| ensure_initialized() | |
| app = firebase_admin.get_app() | |
| print(f"Success! App name: {app.name}") | |
| except Exception as e: | |
| print(f"Failed to initialize Firebase Admin: {e}") | |
| if __name__ == "__main__": | |
| test_firebase_init() | |