Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,11 +83,11 @@ def search_internet(question):
|
|
83 |
openai.api_key = st.secrets["OPENAI_KEY"] #os.environ("OPENAI_KEY") #os.environ['OPENAI_KEY']
|
84 |
date_time = str(datetime.now())
|
85 |
|
86 |
-
dictionary = st.secrets("GSHEET_KEY")
|
87 |
-
json_object = json.dumps(dictionary, indent=4)
|
88 |
|
89 |
def g_sheet_log(myinput, output):
|
90 |
-
SERVICE_ACCOUNT_FILE =
|
91 |
|
92 |
credentials = service_account.Credentials.from_service_account_file(
|
93 |
filename=SERVICE_ACCOUNT_FILE
|
|
|
83 |
openai.api_key = st.secrets["OPENAI_KEY"] #os.environ("OPENAI_KEY") #os.environ['OPENAI_KEY']
|
84 |
date_time = str(datetime.now())
|
85 |
|
86 |
+
# dictionary = st.secrets("GSHEET_KEY")
|
87 |
+
# json_object = json.dumps(dictionary, indent=4)
|
88 |
|
89 |
def g_sheet_log(myinput, output):
|
90 |
+
SERVICE_ACCOUNT_FILE = 'gsheet.json'
|
91 |
|
92 |
credentials = service_account.Credentials.from_service_account_file(
|
93 |
filename=SERVICE_ACCOUNT_FILE
|