Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,13 @@ import requests
|
|
10 |
import json
|
11 |
import math
|
12 |
|
13 |
-
SHEET_ID = '
|
14 |
log = os.getenv('USER')
|
15 |
password = os.getenv('PASSWORD')
|
16 |
SOCIAL_SHEET = 'SocialSheet'
|
17 |
|
18 |
# Service account credentials file path
|
19 |
-
CREDENTIALS_FILE = 'credentials.json'
|
20 |
|
21 |
# Initialize Google Sheets client
|
22 |
SCOPES = ['https://www.googleapis.com/auth/spreadsheets', 'https://www.googleapis.com/auth/drive']
|
@@ -114,4 +114,4 @@ iface = gr.Interface(
|
|
114 |
live=False
|
115 |
)
|
116 |
|
117 |
-
iface.launch()
|
|
|
10 |
import json
|
11 |
import math
|
12 |
|
13 |
+
SHEET_ID = os.getenv('SHEETID) # Replace with your Google Sheet ID
|
14 |
log = os.getenv('USER')
|
15 |
password = os.getenv('PASSWORD')
|
16 |
SOCIAL_SHEET = 'SocialSheet'
|
17 |
|
18 |
# Service account credentials file path
|
19 |
+
CREDENTIALS_FILE = 'credentials.json'
|
20 |
|
21 |
# Initialize Google Sheets client
|
22 |
SCOPES = ['https://www.googleapis.com/auth/spreadsheets', 'https://www.googleapis.com/auth/drive']
|
|
|
114 |
live=False
|
115 |
)
|
116 |
|
117 |
+
iface.launch(auth=(log,password))
|