toshas commited on
Commit
d4d6da5
·
1 Parent(s): ee2b6db

change the version of gradio-dualvision to match the version of gradio

Browse files
gradio_dualvision/app_template.py CHANGED
@@ -82,6 +82,9 @@ class DualVisionApp(gr.Blocks):
82
  gallery_thumb_min_size: Min size of the gallery thumbnail (Default: `96px`).
83
  **kwargs: Any other arguments that Gradio Blocks class can take.
84
  """
 
 
 
85
  squeeze_viewport_height_pct = int(squeeze_viewport_height_pct)
86
  if not 50 <= squeeze_viewport_height_pct <= 100:
87
  raise gr.Error(
 
82
  gallery_thumb_min_size: Min size of the gallery thumbnail (Default: `96px`).
83
  **kwargs: Any other arguments that Gradio Blocks class can take.
84
  """
85
+ if __version__ != gr.__version__:
86
+ raise gr.Error(f"gradio version ({gr.__version__}) must match gradio-dualvision version ({__version__}). Check the README.md of your demo.")
87
+
88
  squeeze_viewport_height_pct = int(squeeze_viewport_height_pct)
89
  if not 50 <= squeeze_viewport_height_pct <= 100:
90
  raise gr.Error(
gradio_dualvision/version.py CHANGED
@@ -22,4 +22,4 @@
22
  # https://github.com/prs-eth/rollingdepth#-citation
23
  # --------------------------------------------------------------------------
24
 
25
- __version__ = "0.2.0"
 
22
  # https://github.com/prs-eth/rollingdepth#-citation
23
  # --------------------------------------------------------------------------
24
 
25
+ __version__ = "5.29.0"