FluxFinance commited on
Commit
6f68ea8
ยท
verified ยท
1 Parent(s): a8f261e

Update Advisernote.py

Browse files
Files changed (1) hide show
  1. Advisernote.py +1 -0
Advisernote.py CHANGED
@@ -27,6 +27,7 @@ import sqlite3
27
  # 1. ์ธ์ฆ ๋ฐ Secrets ํ†ตํ•ฉ ๋กœ๋“œ
28
  creds_json_str = st.secrets.get("GCP_CREDENTIALS")
29
  if creds_json_str:
 
30
  with open("credentials.json", "w") as f:
31
  f.write(creds_json_str)
32
  os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "credentials.json"
 
27
  # 1. ์ธ์ฆ ๋ฐ Secrets ํ†ตํ•ฉ ๋กœ๋“œ
28
  creds_json_str = st.secrets.get("GCP_CREDENTIALS")
29
  if creds_json_str:
30
+ creds_json_str = creds_json_str.replace("'", '"') # ๐Ÿ‘ˆ [ํ•ต์‹ฌ] ์ž‘์€๋”ฐ์˜ดํ‘œ๋ฅผ ํฐ๋”ฐ์˜ดํ‘œ๋กœ ๋ชฐ๋ž˜ ๋ณต๊ตฌ!
31
  with open("credentials.json", "w") as f:
32
  f.write(creds_json_str)
33
  os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "credentials.json"