Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- src/README.md +1 -1
- src/backend/gradio_imagemeta/helpers.py +3 -3
- src/pyproject.toml +1 -1
README.md
CHANGED
|
@@ -10,7 +10,7 @@ app_file: space.py
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# `gradio_imagemeta`
|
| 13 |
-
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.
|
| 14 |
|
| 15 |
Image Preview with Metadata for Gradio Interface
|
| 16 |
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# `gradio_imagemeta`
|
| 13 |
+
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.11%20-%20blue"> <a href="https://huggingface.co/spaces/elismasilva/gradio_imagemeta"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Demo-blue"></a><p><span>💻 <a href='https://github.com/DEVAIEXP/gradio_component_imagemeta'>Component GitHub Code</a></span></p>
|
| 14 |
|
| 15 |
Image Preview with Metadata for Gradio Interface
|
| 16 |
|
src/README.md
CHANGED
|
@@ -10,7 +10,7 @@ app_file: space.py
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# `gradio_imagemeta`
|
| 13 |
-
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.
|
| 14 |
|
| 15 |
Image Preview with Metadata for Gradio Interface
|
| 16 |
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# `gradio_imagemeta`
|
| 13 |
+
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.11%20-%20blue"> <a href="https://huggingface.co/spaces/elismasilva/gradio_imagemeta"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Demo-blue"></a><p><span>💻 <a href='https://github.com/DEVAIEXP/gradio_component_imagemeta'>Component GitHub Code</a></span></p>
|
| 14 |
|
| 15 |
Image Preview with Metadata for Gradio Interface
|
| 16 |
|
src/backend/gradio_imagemeta/helpers.py
CHANGED
|
@@ -344,9 +344,9 @@ def transfer_metadata(
|
|
| 344 |
path_to_key_map = build_path_to_metadata_key_map(dc_type, prefix_values)
|
| 345 |
|
| 346 |
# Get the base instance to start populating.
|
| 347 |
-
instance_to_populate = getattr(component, '_dataclass_value', dc_type())
|
| 348 |
-
if not is_dataclass(instance_to_populate):
|
| 349 |
-
|
| 350 |
|
| 351 |
# Populate the instance by iterating through the path map.
|
| 352 |
for path, metadata_key in path_to_key_map.items():
|
|
|
|
| 344 |
path_to_key_map = build_path_to_metadata_key_map(dc_type, prefix_values)
|
| 345 |
|
| 346 |
# Get the base instance to start populating.
|
| 347 |
+
#instance_to_populate = getattr(component, '_dataclass_value', dc_type())
|
| 348 |
+
#if not is_dataclass(instance_to_populate):
|
| 349 |
+
instance_to_populate = dc_type()
|
| 350 |
|
| 351 |
# Populate the instance by iterating through the path map.
|
| 352 |
for path, metadata_key in path_to_key_map.items():
|
src/pyproject.toml
CHANGED
|
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
| 8 |
|
| 9 |
[project]
|
| 10 |
name = "gradio_imagemeta"
|
| 11 |
-
version = "0.0.
|
| 12 |
description = "Image Preview with Metadata for Gradio Interface"
|
| 13 |
readme = "README.md"
|
| 14 |
license = "apache-2.0"
|
|
|
|
| 8 |
|
| 9 |
[project]
|
| 10 |
name = "gradio_imagemeta"
|
| 11 |
+
version = "0.0.11"
|
| 12 |
description = "Image Preview with Metadata for Gradio Interface"
|
| 13 |
readme = "README.md"
|
| 14 |
license = "apache-2.0"
|