CobaltZvc commited on
Commit
c44b260
1 Parent(s): 5046c83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -83,8 +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
  def g_sheet_log(myinput, output):
87
- SERVICE_ACCOUNT_FILE = 'gsheet.json'
88
 
89
  credentials = service_account.Credentials.from_service_account_file(
90
  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 = json_object #'gsheet.json'
91
 
92
  credentials = service_account.Credentials.from_service_account_file(
93
  filename=SERVICE_ACCOUNT_FILE