Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
read csv issue
Browse files
app.py
CHANGED
|
@@ -55,9 +55,9 @@ async def on_ready():
|
|
| 55 |
# testing sheet -> read -> paste sheet
|
| 56 |
|
| 57 |
"""import data from google sheets -> HF Space .csv (doesn't make API call this way, as it's read-only)"""
|
| 58 |
-
data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
|
| 59 |
-
print(f"csv successfully retrieved: {data}")
|
| 60 |
-
data.to_csv(csv_file, index=False)
|
| 61 |
|
| 62 |
|
| 63 |
def update_google_sheet():
|
|
|
|
| 55 |
# testing sheet -> read -> paste sheet
|
| 56 |
|
| 57 |
"""import data from google sheets -> HF Space .csv (doesn't make API call this way, as it's read-only)"""
|
| 58 |
+
#data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
|
| 59 |
+
#print(f"csv successfully retrieved: {data}")
|
| 60 |
+
#data.to_csv(csv_file, index=False)
|
| 61 |
|
| 62 |
|
| 63 |
def update_google_sheet():
|