Fix import of st.secrets

This commit is contained in:
yagudin 2021-05-31 22:09:57 +03:00
parent 49bd46860c
commit 77b36fef73

View File

@ -1,8 +1,10 @@
import json
from gjo_requests import request_forecasts, request_resolutions
import streamlit as st
from google.cloud import firestore
from gjo_requests import request_forecasts, request_resolutions
firestore_info = json.loads(st.secrets["firestore_info"])
credentials = service_account.Credentials.from_service_account_info(firestore_info)
db = firestore.Client(credentials=credentials, project="gjo-calibration")