yunusakkaya commited on
Commit
c48c207
·
verified ·
1 Parent(s): bc64358

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,13 +17,14 @@ import json
17
 
18
  # Firebase JSON içeriğini Hugging Face Secrets'ten al
19
  firebase_json_string = os.getenv("firebase")
 
20
 
21
  hf_token = os.getenv("token1") # Secret Manager'da tanımladığınız isim
22
  login(hf_token)
23
 
24
  # Firebase Admin SDK'yı başlatma
25
  if not firebase_admin._apps:
26
- cred = credentials.Certificate(firebase_json_string)
27
  firebase_admin.initialize_app(cred)
28
  # -----------------------------
29
  # 1. Device Configuration
 
17
 
18
  # Firebase JSON içeriğini Hugging Face Secrets'ten al
19
  firebase_json_string = os.getenv("firebase")
20
+ firebase_credentials = json.loads(firebase_json_string)
21
 
22
  hf_token = os.getenv("token1") # Secret Manager'da tanımladığınız isim
23
  login(hf_token)
24
 
25
  # Firebase Admin SDK'yı başlatma
26
  if not firebase_admin._apps:
27
+ cred = credentials.Certificate(firebase_credentials)
28
  firebase_admin.initialize_app(cred)
29
  # -----------------------------
30
  # 1. Device Configuration