znation HF staff commited on
Commit
03a8d5e
·
1 Parent(s): 7abb0f7

ssl recursion fix in list_repos

Browse files
Files changed (1) hide show
  1. 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