Spaces:
Running
Running
Update comunicacion_gmail.py
Browse files- comunicacion_gmail.py +1 -1
comunicacion_gmail.py
CHANGED
@@ -24,7 +24,7 @@ def gmail_tool(accion, parametros={}):
|
|
24 |
else:
|
25 |
flow = InstalledAppFlow.from_client_secrets_file('credentials.json', SCOPES)
|
26 |
# Obtener URL de autorizaci贸n
|
27 |
-
auth_url, _ = flow.authorization_url(prompt='consent', redirect_uri='https://
|
28 |
return {"auth_url": auth_url, "requires_auth": True} # Indicar que se requiere autorizaci贸n
|
29 |
|
30 |
service = build('gmail', 'v1', credentials=creds)
|
|
|
24 |
else:
|
25 |
flow = InstalledAppFlow.from_client_secrets_file('credentials.json', SCOPES)
|
26 |
# Obtener URL de autorizaci贸n
|
27 |
+
auth_url, _ = flow.authorization_url(prompt='consent', redirect_uri='https://trainheartx-gmail.hf.space/callback') # IMPORTANTE: redirect_uri
|
28 |
return {"auth_url": auth_url, "requires_auth": True} # Indicar que se requiere autorizaci贸n
|
29 |
|
30 |
service = build('gmail', 'v1', credentials=creds)
|