Spaces:
Sleeping
Sleeping
09/08/2023
Browse files
app.py
CHANGED
|
@@ -21,8 +21,11 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
| 21 |
# Establece las credenciales y la API
|
| 22 |
|
| 23 |
credentials = os.getenv( "credentials" )
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
Google_URL = os.getenv( "Google_URL" )
|
| 28 |
#print( Google_URL )
|
|
|
|
| 21 |
# Establece las credenciales y la API
|
| 22 |
|
| 23 |
credentials = os.getenv( "credentials" )
|
| 24 |
+
|
| 25 |
+
credentials = json.loads( credentials )
|
| 26 |
+
print( credentials )
|
| 27 |
+
|
| 28 |
+
gc = gspread.service_account_from_dict( credentials )
|
| 29 |
|
| 30 |
Google_URL = os.getenv( "Google_URL" )
|
| 31 |
#print( Google_URL )
|