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

ssl reecursion fix in app

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import sys
2
 
3
  import gradio as gr
 
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 sys
7
 
8
  import gradio as gr