Daniil
commited on
Commit
·
3672495
1
Parent(s):
853f9ad
Updating emails
Browse files- app.py +7 -6
- pages/_2S_Model.py +1 -0
app.py
CHANGED
@@ -6,12 +6,6 @@ import firebase_admin
|
|
6 |
from firebase_admin import credentials, firestore
|
7 |
import json
|
8 |
|
9 |
-
# Initialize Firebase
|
10 |
-
if not firebase_admin._apps:
|
11 |
-
cred = credentials.Certificate("coco-evaluation-firebase-adminsdk-p3m64-99c4ea22c1.json")
|
12 |
-
firebase_admin.initialize_app(cred)
|
13 |
-
db = firestore.client()
|
14 |
-
|
15 |
|
16 |
# Set page configuration as the first command
|
17 |
st.set_page_config(
|
@@ -41,6 +35,13 @@ file_path = "coco-evaluation-firebase-adminsdk-p3m64-99c4ea22c1.json"
|
|
41 |
with open(file_path, 'w') as json_file:
|
42 |
json.dump(creds_dict, json_file, indent=2)
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
# Set passcode for authentication
|
46 |
PASSCODE = os.environ["MY_PASSCODE"]
|
|
|
6 |
from firebase_admin import credentials, firestore
|
7 |
import json
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Set page configuration as the first command
|
11 |
st.set_page_config(
|
|
|
35 |
with open(file_path, 'w') as json_file:
|
36 |
json.dump(creds_dict, json_file, indent=2)
|
37 |
|
38 |
+
# Initialize Firebase
|
39 |
+
if not firebase_admin._apps:
|
40 |
+
cred = credentials.Certificate("coco-evaluation-firebase-adminsdk-p3m64-99c4ea22c1.json")
|
41 |
+
firebase_admin.initialize_app(cred)
|
42 |
+
db = firestore.client()
|
43 |
+
|
44 |
+
|
45 |
|
46 |
# Set passcode for authentication
|
47 |
PASSCODE = os.environ["MY_PASSCODE"]
|
pages/_2S_Model.py
CHANGED
@@ -96,6 +96,7 @@ creds_dict = {
|
|
96 |
"universe_domain": "googleapis.com"
|
97 |
|
98 |
}
|
|
|
99 |
# Create a temporary JSON file
|
100 |
file_path = "coco-evaluation-firebase-adminsdk-p3m64-99c4ea22c1.json"
|
101 |
with open(file_path, 'w') as json_file:
|
|
|
96 |
"universe_domain": "googleapis.com"
|
97 |
|
98 |
}
|
99 |
+
|
100 |
# Create a temporary JSON file
|
101 |
file_path = "coco-evaluation-firebase-adminsdk-p3m64-99c4ea22c1.json"
|
102 |
with open(file_path, 'w') as json_file:
|