Spaces:
Sleeping
Sleeping
Update google_function.py
Browse files- google_function.py +1 -1
google_function.py
CHANGED
@@ -149,7 +149,7 @@ def connetti_google():
|
|
149 |
if creds and creds.expired and creds.refresh_token:
|
150 |
creds.refresh(Request())
|
151 |
else:
|
152 |
-
flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES)
|
153 |
creds = flow.run_local_server(port=0)
|
154 |
with open("token.json", "w") as token:
|
155 |
token.write(creds.to_json())
|
|
|
149 |
if creds and creds.expired and creds.refresh_token:
|
150 |
creds.refresh(Request())
|
151 |
else:
|
152 |
+
flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES, redirect_uri='https://matteoscript-streamlitchat-new.hf.space')
|
153 |
creds = flow.run_local_server(port=0)
|
154 |
with open("token.json", "w") as token:
|
155 |
token.write(creds.to_json())
|