lunarflu HF staff commited on
Commit
30462e3
·
verified ·
1 Parent(s): f6602f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  import re
3
  import csv
4
  import json
@@ -69,7 +70,7 @@ async def give_verified_roles():
69
  await asyncio.sleep(60)
70
  continue
71
  csv_data = await response.text()
72
- global_df = pd.read_csv(pd.compat.StringIO(csv_data))
73
  except asyncio.TimeoutError:
74
  print("CSV fetch timed out.")
75
  await asyncio.sleep(60)
 
1
  import os
2
+ import io
3
  import re
4
  import csv
5
  import json
 
70
  await asyncio.sleep(60)
71
  continue
72
  csv_data = await response.text()
73
+ global_df = pd.read_csv(io.StringIO(csv_data))
74
  except asyncio.TimeoutError:
75
  print("CSV fetch timed out.")
76
  await asyncio.sleep(60)