toshas commited on
Commit
a6cafe4
·
1 Parent(s): a6bce16

fix the pyi issue encountered on hf spaces

Browse files
gradio_dualvision/gradio_patches/gallery.py CHANGED
@@ -22,6 +22,13 @@
22
  # https://github.com/prs-eth/rollingdepth#-citation
23
  # --------------------------------------------------------------------------
24
  import gradio
 
 
 
 
 
 
 
25
  import numpy as np
26
  import PIL.Image
27
  from concurrent.futures import ThreadPoolExecutor
 
22
  # https://github.com/prs-eth/rollingdepth#-citation
23
  # --------------------------------------------------------------------------
24
  import gradio
25
+ import gradio.component_meta as _component_meta
26
+
27
+ def _noop_create_or_modify_pyi(*args, **kwargs):
28
+ return None
29
+
30
+ _component_meta.create_or_modify_pyi = _noop_create_or_modify_pyi
31
+
32
  import numpy as np
33
  import PIL.Image
34
  from concurrent.futures import ThreadPoolExecutor