# AttributeError: 'Image' object has no attribute 'value'

**URL:** <https://discuss.huggingface.co/t/attributeerror-image-object-has-no-attribute-value/51695>\
**Category:** 🔒 Gradio\
**Created:** [August 22, 2023, 3:15pm UTC](https://discuss.huggingface.co/t/attributeerror-image-object-has-no-attribute-value/51695 "2023-08-22T15:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katie-portswigger](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@Katie-portswigger](https://discuss.huggingface.co/u/Katie-portswigger)\
**Post date:** [August 22, 2023, 3:15pm UTC](https://discuss.huggingface.co/t/attributeerror-image-object-has-no-attribute-value/51695/1 "2023-08-22T15:15:02Z")

</div>

Hello could you help me resolve the error i’m getting please. I can import and load the theme locally with `with gr.Blocks(theme=("Katie-portswigger/Portswigger")) as demo:`  
But it’s not running in Spaces.

CONTAINER LOGS:  
===== Application Startup at 2023-08-22 14:32:28 =====

Downloading (…)\_schema%400.0.1.json: 0%| | 0.00/13.4k [00:00\<?, ?B/s]  
Downloading (…)\_schema%400.0.1.json: 100%|██████████| 13.4k/13.4k [00:00\<00:00, 78.8MB/s]  
Traceback (most recent call last):  
File “/home/user/app/app.py”, line 67, in   
img = gr.Image(  
File “/home/user/.local/lib/python3.10/site-packages/gradio/components.py”, line 1667, in **init**  
IOComponent. **init** (  
File “/home/user/.local/lib/python3.10/site-packages/gradio/components.py”, line 210, in **init**  
else self.postprocess(initial\_value)  
File “/home/user/.local/lib/python3.10/site-packages/gradio/components.py”, line 1797, in postprocess  
return client\_utils.encode\_url\_or\_file\_to\_base64(y)  
File “/home/user/.local/lib/python3.10/site-packages/gradio\_client/utils.py”, line 386, in encode\_url\_or\_file\_to\_base64  
return encode\_url\_to\_base64(path)  
File “/home/user/.local/lib/python3.10/site-packages/gradio\_client/utils.py”, line 374, in encode\_url\_to\_base64  
resp.raise\_for\_status()  
File “/home/user/.local/lib/python3.10/site-packages/requests/models.py”, line 1021, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: [https://www.gradio.app/assets/img/header-image.jpg](https://www.gradio.app/assets/img/header-image.jpg)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/home/user/app/app.py”, line 9, in   
with gr.Blocks(theme=‘Katie-portswigger/Portswigger’) as demo:  
File “/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py”, line 1200, in **exit**  
self.config = self.get\_config\_file()  
File “/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py”, line 1165, in get\_config\_file  
props = block.get\_config() if hasattr(block, “get\_config”) else {}  
File “/home/user/.local/lib/python3.10/site-packages/gradio/components.py”, line 1687, in get\_config  
“value”: self.value,  
AttributeError: ‘Image’ object has no attribute ‘value’

BUILD LOGS:  
===== Build Queued at 2023-08-22 14:32:17 / Commit SHA: e2b1e3f =====

→ FROM [Docker](http://docker.io/library/python:3.10@sha256:bac3a0e0d16125977e351c861e2f4b12ecafeaa6f72431dc970d0b9155103232)  
DONE 0.0s

→ RUN useradd -m -u 1000 user  
CACHED

→ RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets “huggingface-hub\>=0.12.1” “protobuf\<4” “click\<8.1” “pydantic~=1.0”  
CACHED

→ COPY --link --chown=1000 --from=lfs /app /home/user/app  
CACHED

→ RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt  
CACHED

→ RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/\* && git lfs install  
CACHED

→ RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt  
CACHED

→ RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/\*  
CACHED

→ WORKDIR /home/user/app  
CACHED

→ RUN pip install --no-cache-dir gradio==3.24.1  
CACHED

→ COPY --link --chown=1000 ./ /home/user/app  
DONE 0.0s

→ Pushing image  
DONE 1.2s

→ Exporting cache  
DONE 1.6s

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](https://discuss.huggingface.co/u/abidlabs)\
**Post date:** [August 25, 2023, 7:08pm UTC](https://discuss.huggingface.co/t/attributeerror-image-object-has-no-attribute-value/51695/2 "2023-08-25T19:08:39Z")

</div>

What’s the Space you’re trying? Can you make sure it’s running the latest version of gradio?
