Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ import json
|
|
79 |
GOOGLE_SERVICE_ACCOUNT_JSON = st.secrets["GOOGLE_SERVICE_ACCOUNT_JSON"]
|
80 |
|
81 |
# Google Sheets setup
|
82 |
-
scope = ["https://
|
83 |
service_account_info = json.loads(GOOGLE_SERVICE_ACCOUNT_JSON)
|
84 |
creds = ServiceAccountCredentials.from_json_keyfile_dict(service_account_info, scope)
|
85 |
client = gspread.authorize(creds)
|
|
|
79 |
GOOGLE_SERVICE_ACCOUNT_JSON = st.secrets["GOOGLE_SERVICE_ACCOUNT_JSON"]
|
80 |
|
81 |
# Google Sheets setup
|
82 |
+
scope = ["https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/drive"]
|
83 |
service_account_info = json.loads(GOOGLE_SERVICE_ACCOUNT_JSON)
|
84 |
creds = ServiceAccountCredentials.from_json_keyfile_dict(service_account_info, scope)
|
85 |
client = gspread.authorize(creds)
|