Spaces:
Sleeping
Sleeping
record result update
Browse files
app.py
CHANGED
@@ -8,9 +8,10 @@ import os
|
|
8 |
import re
|
9 |
import firebase_admin
|
10 |
from firebase_admin import credentials, firestore
|
|
|
11 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
12 |
|
13 |
-
cred = credentials.Certificate(os.getenv("Firebase_JSON"))
|
14 |
firebase_admin.initialize_app(cred)
|
15 |
db = firestore.client()
|
16 |
|
|
|
8 |
import re
|
9 |
import firebase_admin
|
10 |
from firebase_admin import credentials, firestore
|
11 |
+
import json
|
12 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
13 |
|
14 |
+
cred = credentials.Certificate(json.loads(os.getenv("Firebase_JSON")))
|
15 |
firebase_admin.initialize_app(cred)
|
16 |
db = firestore.client()
|
17 |
|