Spaces:
Sleeping
Sleeping
ssl recursion fix in list_repos
Browse files- list_repos.py +5 -0
list_repos.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import sqlite3
|
2 |
import huggingface_hub
|
3 |
import sys
|
|
|
1 |
+
# found on https://stackoverflow.com/a/52130355 to fix infinite recursion with ssl
|
2 |
+
# at the beginning of the script
|
3 |
+
import gevent.monkey
|
4 |
+
gevent.monkey.patch_all()
|
5 |
+
|
6 |
import sqlite3
|
7 |
import huggingface_hub
|
8 |
import sys
|