Spaces:
Sleeping
Sleeping
Merge branch 'gradio-5.29.0'
Browse files
app.py
CHANGED
|
@@ -92,4 +92,5 @@ with ImageFiltersApp(
|
|
| 92 |
).launch(
|
| 93 |
server_name="0.0.0.0",
|
| 94 |
server_port=7860,
|
|
|
|
| 95 |
)
|
|
|
|
| 92 |
).launch(
|
| 93 |
server_name="0.0.0.0",
|
| 94 |
server_port=7860,
|
| 95 |
+
ssr_mode=False,
|
| 96 |
)
|
gradio_dualvision/app_template.py
CHANGED
|
@@ -173,8 +173,6 @@ class DualVisionApp(gr.Blocks):
|
|
| 173 |
parentDiv.replaceChild(newButtonBuiltWith, origButtonShowAPI);
|
| 174 |
parentDiv.replaceChild(newButtonTemplateBy, origButtonBuiltWith);
|
| 175 |
parentDiv.replaceChild(newButtonLicensed, origButtonSettings);
|
| 176 |
-
parentDiv.appendChild(origSeparatorDiv.cloneNode(true));
|
| 177 |
-
parentDiv.appendChild(origButtonSettings);
|
| 178 |
});
|
| 179 |
observerFooterButtons.observe(document.body, { childList: true, subtree: true });
|
| 180 |
</script>
|
|
|
|
| 173 |
parentDiv.replaceChild(newButtonBuiltWith, origButtonShowAPI);
|
| 174 |
parentDiv.replaceChild(newButtonTemplateBy, origButtonBuiltWith);
|
| 175 |
parentDiv.replaceChild(newButtonLicensed, origButtonSettings);
|
|
|
|
|
|
|
| 176 |
});
|
| 177 |
observerFooterButtons.observe(document.body, { childList: true, subtree: true });
|
| 178 |
</script>
|
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
|