Spaces:
Running on CPU Upgrade

lunarflu HF staff commited on
Commit
bca4b69
·
verified ·
1 Parent(s): 5eb1560

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ api = HfApi()
51
  #csv_file = 'data.csv'
52
  global_df = pd.DataFrame()
53
  print(type(global_df))
54
- data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
55
 
56
  @bot.event
57
  async def on_ready():
@@ -61,7 +61,7 @@ async def on_ready():
61
  # testing sheet -> read -> paste sheet
62
 
63
  """import data from google sheets -> HF Space .csv (doesn't make API call this way, as it's read-only)"""
64
-
65
  data['discord_user_id'] = data['discord_user_id'].astype(str)
66
  global_df = data
67
  print(f"csv successfully retrieved: {global_df}")
 
51
  #csv_file = 'data.csv'
52
  global_df = pd.DataFrame()
53
  print(type(global_df))
54
+
55
 
56
  @bot.event
57
  async def on_ready():
 
61
  # testing sheet -> read -> paste sheet
62
 
63
  """import data from google sheets -> HF Space .csv (doesn't make API call this way, as it's read-only)"""
64
+ data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
65
  data['discord_user_id'] = data['discord_user_id'].astype(str)
66
  global_df = data
67
  print(f"csv successfully retrieved: {global_df}")