Fix import of st.secrets
This commit is contained in:
parent
49bd46860c
commit
77b36fef73
|
@ -1,8 +1,10 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from gjo_requests import request_forecasts, request_resolutions
|
import streamlit as st
|
||||||
from google.cloud import firestore
|
from google.cloud import firestore
|
||||||
|
|
||||||
|
from gjo_requests import request_forecasts, request_resolutions
|
||||||
|
|
||||||
firestore_info = json.loads(st.secrets["firestore_info"])
|
firestore_info = json.loads(st.secrets["firestore_info"])
|
||||||
credentials = service_account.Credentials.from_service_account_info(firestore_info)
|
credentials = service_account.Credentials.from_service_account_info(firestore_info)
|
||||||
db = firestore.Client(credentials=credentials, project="gjo-calibration")
|
db = firestore.Client(credentials=credentials, project="gjo-calibration")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user