Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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(
|
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)
|