# Gradio problem, gradio change not functioning good for gr.Image

**URL:** <https://discuss.huggingface.co/t/gradio-problem-gradio-change-not-functioning-good-for-gr-image/149081>\
**Category:** Beginners\
**Created:** [April 6, 2025, 7:18am UTC](https://discuss.huggingface.co/t/gradio-problem-gradio-change-not-functioning-good-for-gr-image/149081 "2025-04-06T07:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 6, 2025, 10:17am UTC](https://discuss.huggingface.co/t/gradio-problem-gradio-change-not-functioning-good-for-gr-image/149081/2 "2025-04-06T10:17:00Z")

</div>

> TypeError: argument of type ‘bool’ is not iterable  
> File “gradio\_client\utils.py”, line 898, in get\_type  
> if “const” in schema:

The conditions and components are completely different, but the error content is exactly the same, so it might be the same cause…

> [@Error : No API Found](https://discuss.huggingface.co/t/error-no-api-found/146226):
>
> Hi, I have built a Gemini 2.0 flash based photo editing app with gradio ui. This app is running perfectly fine on my local system, but when I am trying to run it on spaces it is giving me Error : No API Found. I have used gemini api keys in secrects Code : [https://huggingface.co/spaces/Saurabh502/Gemini-photo/resolve/main/app.py](https://huggingface.co/spaces/Saurabh502/Gemini-photo/resolve/main/app.py) Please let me know your thoughts, on how to resolve this. Thanks

```auto
pydantic==2.10.6

```

---

_[View the full topic](https://discuss.huggingface.co/t/gradio-problem-gradio-change-not-functioning-good-for-gr-image/149081)._
