Spaces:
Runtime error
Runtime error
piyush2102020
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ weights=torch.load("veronica_model/veronica_super_trained.pth",map_location='cpu
|
|
26 |
model.load_state_dict(weights)
|
27 |
model.eval()
|
28 |
firebase_key_path = os.getenv("firebase_db_url")
|
29 |
-
cred = json.
|
30 |
cred = credentials.Certificate(cred)
|
31 |
firebase_app = firebase_admin.initialize_app(cred, {
|
32 |
'databaseURL': firebase_key_path
|
|
|
26 |
model.load_state_dict(weights)
|
27 |
model.eval()
|
28 |
firebase_key_path = os.getenv("firebase_db_url")
|
29 |
+
cred = json.loads(os.getenv("firebase_credentials"))
|
30 |
cred = credentials.Certificate(cred)
|
31 |
firebase_app = firebase_admin.initialize_app(cred, {
|
32 |
'databaseURL': firebase_key_path
|