Spaces:
Runtime error
Runtime error
Updates to .json and Google Sheets
Browse files
app.py
CHANGED
|
@@ -150,7 +150,7 @@ import gspread
|
|
| 150 |
import pandas as pd
|
| 151 |
|
| 152 |
# Load the service account JSON
|
| 153 |
-
json_file_path = "fostercare-449201-
|
| 154 |
with open(json_file_path, 'r') as file:
|
| 155 |
service_account_data = json.load(file)
|
| 156 |
|
|
@@ -160,10 +160,10 @@ creds = Credentials.from_service_account_info(service_account_data, scopes=scope
|
|
| 160 |
client = gspread.authorize(creds)
|
| 161 |
|
| 162 |
# Open the shared Google Sheet by name
|
| 163 |
-
spreadsheet = client.open("
|
| 164 |
|
| 165 |
# Link to Google Sheet
|
| 166 |
-
# https://docs.google.com/spreadsheets/d/1cUwgYxLaCGnXnSjS2LJN7Fr0xnJ8_zlGRI6RpCFVvMQ/
|
| 167 |
|
| 168 |
# Code to set up Gradio GUI
|
| 169 |
import gradio as gr
|
|
|
|
| 150 |
import pandas as pd
|
| 151 |
|
| 152 |
# Load the service account JSON
|
| 153 |
+
json_file_path = "fostercare-449201-85282f81c3b7.json" # Load the credentials for the service account
|
| 154 |
with open(json_file_path, 'r') as file:
|
| 155 |
service_account_data = json.load(file)
|
| 156 |
|
|
|
|
| 160 |
client = gspread.authorize(creds)
|
| 161 |
|
| 162 |
# Open the shared Google Sheet by name
|
| 163 |
+
spreadsheet = client.open("Fostercare Responses").sheet1
|
| 164 |
|
| 165 |
# Link to Google Sheet
|
| 166 |
+
# https://docs.google.com/spreadsheets/d/1cUwgYxLaCGnXnSjS2LJN7Fr0xnJ8_zlGRI6RpCFVvMQ/
|
| 167 |
|
| 168 |
# Code to set up Gradio GUI
|
| 169 |
import gradio as gr
|