Spaces:
Sleeping
Sleeping
Revert "upgrade gradio to 5.49.1"
Browse filesThis reverts commit 0fb8ef878b5c17a2b9d314eabae815689568868b.
- README.md +2 -2
- gradio_dualvision/gradio_patches/gallery.py +8 -4
- requirements.txt +3 -3
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 👀
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: cc-by-sa-4.0
|
|
@@ -123,7 +123,7 @@ These are the cats of the Marigold authors!
|
|
| 123 |
- Double copying between the hidden gallery component and the slider introduces visible flickering.
|
| 124 |
- Each version of gradio-dualvision is locked to specific versions of `gradio`:
|
| 125 |
- `v0.1.0`: `gradio==4.44.1` and `gradio_imageslider==0.0.20`;
|
| 126 |
-
- `v0.2.0`: `gradio==5.
|
| 127 |
|
| 128 |
## Contributing
|
| 129 |
PRs are welcome but should start as a discussion in the [Issues](https://github.com/toshas/gradio-dualvision/issues) first.
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.29.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: cc-by-sa-4.0
|
|
|
|
| 123 |
- Double copying between the hidden gallery component and the slider introduces visible flickering.
|
| 124 |
- Each version of gradio-dualvision is locked to specific versions of `gradio`:
|
| 125 |
- `v0.1.0`: `gradio==4.44.1` and `gradio_imageslider==0.0.20`;
|
| 126 |
+
- `v0.2.0`: `gradio==5.29.0`;
|
| 127 |
|
| 128 |
## Contributing
|
| 129 |
PRs are welcome but should start as a discussion in the [Issues](https://github.com/toshas/gradio-dualvision/issues) first.
|
gradio_dualvision/gradio_patches/gallery.py
CHANGED
|
@@ -12,7 +12,7 @@ import numpy as np
|
|
| 12 |
import PIL.Image
|
| 13 |
from gradio_client.utils import is_http_url_like
|
| 14 |
|
| 15 |
-
from gradio import processing_utils, utils, image_utils
|
| 16 |
from gradio.data_classes import FileData, ImageData
|
| 17 |
|
| 18 |
|
|
@@ -98,7 +98,11 @@ class Gallery(gradio.Gallery):
|
|
| 98 |
caption=caption,
|
| 99 |
)
|
| 100 |
|
| 101 |
-
|
| 102 |
-
for
|
| 103 |
-
output.append(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
return GalleryData(root=output)
|
|
|
|
| 12 |
import PIL.Image
|
| 13 |
from gradio_client.utils import is_http_url_like
|
| 14 |
|
| 15 |
+
from gradio import processing_utils, utils, wasm_utils, image_utils
|
| 16 |
from gradio.data_classes import FileData, ImageData
|
| 17 |
|
| 18 |
|
|
|
|
| 98 |
caption=caption,
|
| 99 |
)
|
| 100 |
|
| 101 |
+
if wasm_utils.IS_WASM:
|
| 102 |
+
for img in value:
|
| 103 |
+
output.append(_save(img))
|
| 104 |
+
else:
|
| 105 |
+
with ThreadPoolExecutor() as executor:
|
| 106 |
+
for o in executor.map(_save, value):
|
| 107 |
+
output.append(o)
|
| 108 |
return GalleryData(root=output)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
gradio==5.
|
| 2 |
-
gradio_client==1.
|
| 3 |
-
spaces==0.
|
|
|
|
| 1 |
+
gradio==5.29.0
|
| 2 |
+
gradio_client==1.10.0
|
| 3 |
+
spaces==0.36.0
|