Spaces:
Running
Running
Update app.py
#22
by
Muthuraja18
- opened
app.py
CHANGED
|
@@ -16,12 +16,12 @@ import gspread
|
|
| 16 |
from google.oauth2.service_account import Credentials
|
| 17 |
|
| 18 |
# Set up paths for CSV files and Google Sheets credentials
|
| 19 |
-
csv_file_path =
|
| 20 |
-
output_csv_path =
|
| 21 |
|
| 22 |
# Google Sheets setup
|
| 23 |
SCOPE = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
|
| 24 |
-
CREDS_PATH =
|
| 25 |
|
| 26 |
# Initialize Google Sheets connection
|
| 27 |
def initialize_google_sheets():
|
|
|
|
| 16 |
from google.oauth2.service_account import Credentials
|
| 17 |
|
| 18 |
# Set up paths for CSV files and Google Sheets credentials
|
| 19 |
+
csv_file_path = "context.csv" # Path to CSV file with product info
|
| 20 |
+
output_csv_path = "contents.csv" # Path to save query results
|
| 21 |
|
| 22 |
# Google Sheets setup
|
| 23 |
SCOPE = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
|
| 24 |
+
CREDS_PATH = "modern-cycling-444916-g6-82c207d3eb47.json" # Google credentials path
|
| 25 |
|
| 26 |
# Initialize Google Sheets connection
|
| 27 |
def initialize_google_sheets():
|