youssef1214
commited on
Commit
·
d3618ac
1
Parent(s):
7317ad4
Update Database.py
Browse files- Database.py +3 -3
Database.py
CHANGED
@@ -2,6 +2,9 @@ from firebase_admin import credentials
|
|
2 |
from firebase_admin import firestore
|
3 |
import threading
|
4 |
from firebase_admin import db
|
|
|
|
|
|
|
5 |
# Import the Firebase Admin SDK
|
6 |
import firebase_admin
|
7 |
from datetime import datetime
|
@@ -15,9 +18,6 @@ def current_milli_time():
|
|
15 |
import Classes as Classes
|
16 |
db=firestore
|
17 |
# Firebase ininlaziton
|
18 |
-
cred = credentials.Certificate(
|
19 |
-
"text-to-emotions-firebase-adminsdk-8isbn-dffbdf01e8.json")
|
20 |
-
firebase_admin.initialize_app(cred)
|
21 |
|
22 |
# for doc in docs:
|
23 |
# print(f"{doc.id} => {doc.to_dict()}")
|
|
|
2 |
from firebase_admin import firestore
|
3 |
import threading
|
4 |
from firebase_admin import db
|
5 |
+
cred = credentials.Certificate(
|
6 |
+
"text-to-emotions-firebase-adminsdk-8isbn-dffbdf01e8.json")
|
7 |
+
firebase_admin.initialize_app(cred)
|
8 |
# Import the Firebase Admin SDK
|
9 |
import firebase_admin
|
10 |
from datetime import datetime
|
|
|
18 |
import Classes as Classes
|
19 |
db=firestore
|
20 |
# Firebase ininlaziton
|
|
|
|
|
|
|
21 |
|
22 |
# for doc in docs:
|
23 |
# print(f"{doc.id} => {doc.to_dict()}")
|