Update app.py
Browse files
app.py
CHANGED
|
@@ -10,15 +10,15 @@ import dlib
|
|
| 10 |
|
| 11 |
# Get the current working directory
|
| 12 |
current_directory = os.path.dirname(os.path.abspath(__file__))
|
| 13 |
-
skp_path = os.path.join(current_directory, "
|
| 14 |
|
| 15 |
# Check if the app is already initialized
|
| 16 |
if not firebase_admin._apps:
|
| 17 |
# Initialize Firebase Admin SDK
|
| 18 |
cred = credentials.Certificate(skp_path)
|
| 19 |
firebase_admin.initialize_app(cred, {
|
| 20 |
-
'databaseURL': 'https://
|
| 21 |
-
'projectId': '
|
| 22 |
})
|
| 23 |
|
| 24 |
# Reference to the root of your Firebase Realtime Database
|
|
|
|
| 10 |
|
| 11 |
# Get the current working directory
|
| 12 |
current_directory = os.path.dirname(os.path.abspath(__file__))
|
| 13 |
+
skp_path = os.path.join(current_directory, "projectinsta-s-firebase-adminsdk-y6vlu-9a1345f468.json")
|
| 14 |
|
| 15 |
# Check if the app is already initialized
|
| 16 |
if not firebase_admin._apps:
|
| 17 |
# Initialize Firebase Admin SDK
|
| 18 |
cred = credentials.Certificate(skp_path)
|
| 19 |
firebase_admin.initialize_app(cred, {
|
| 20 |
+
'databaseURL': 'https://projectinsta-s-default-rtdb.firebaseio.com/',
|
| 21 |
+
'projectId': 'projectinsta-s'
|
| 22 |
})
|
| 23 |
|
| 24 |
# Reference to the root of your Firebase Realtime Database
|