Spaces:
Runtime error
Runtime error
Commit
·
b1db9a8
1
Parent(s):
0498e28
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,12 @@ os.environ["api_key"] == st.secrets["api_key"]
|
|
13 |
#os.environ["OPENAI_API_KEY"] = api_key
|
14 |
openai.api_key = os.getenv("api_key")
|
15 |
|
16 |
-
os.environ["GSPREAD_CREDENTIALS"]= st.secrets[GSPREAD_CREDENTIALS]
|
17 |
|
18 |
print(type(os.environ["GSPREAD_CREDENTIALS"]))
|
19 |
|
|
|
|
|
20 |
# Initialize session state
|
21 |
if 'df_final_output' not in st.session_state:
|
22 |
st.session_state['df_final_output'] = None
|
|
|
13 |
#os.environ["OPENAI_API_KEY"] = api_key
|
14 |
openai.api_key = os.getenv("api_key")
|
15 |
|
16 |
+
os.environ["GSPREAD_CREDENTIALS"]= st.secrets["GSPREAD_CREDENTIALS"]
|
17 |
|
18 |
print(type(os.environ["GSPREAD_CREDENTIALS"]))
|
19 |
|
20 |
+
print(st.secrets["GSPREAD_CREDENTIALS"], "GSPREAD_CREDENTIALS")
|
21 |
+
|
22 |
# Initialize session state
|
23 |
if 'df_final_output' not in st.session_state:
|
24 |
st.session_state['df_final_output'] = None
|