Spaces:
Sleeping
Sleeping
Update Advisernote.py
Browse files- 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"
|