# Python gradio web pages suddenly don't render properly on iPad browsers

**URL:** <https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669>\
**Category:** Spaces\
**Created:** [November 22, 2024, 1:23am UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669 "2024-11-22T01:23:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlflannery](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dlflannery](https://discuss.huggingface.co/u/dlflannery)\
**Post date:** [November 22, 2024, 1:23am UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669/1 "2024-11-22T01:23:47Z")

</div>

I have a python gradio space running:

[https://huggingface.co/spaces/dlflannery/GradioTest](https://huggingface.co/spaces/dlflannery/GradioTest)

I just upgraded the Gradio SDK to 5.6.0 and now my space’s website renders totally wonky in either the Google Chrome or Safari browsers on two different iPads (7th gen and 10th gen). It renders OK on both Edge and Chrome browsers on my win11 PC.

---

<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:** [November 22, 2024, 2:20am UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669/2 "2024-11-22T02:20:32Z")

</div>

Try this.

```py
#demo.launch(share=True, allowed_paths=[dataDir])
demo.launch(share=True, allowed_paths=[dataDir], ssr_mode=False)

```

---

<div class="post-metadata">

**Author:** ![dlflannery](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dlflannery](https://discuss.huggingface.co/u/dlflannery)\
**Post date:** [November 22, 2024, 10:36am UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669/3 "2024-11-22T10:36:15Z")

</div>

Thank you! That works (as does reverting the Gradio to 5.4.0).

However I’m puzzled:  
The docs for launch ssr\_mode parameter state:

“If True, the Gradio app will be rendered using server-side rendering mode, which is typically more performant and provides better SEO, but this requires Node 20+ to be installed on the system. If False, the app will be rendered using client-side rendering mode. If None, will use GRADIO\_SSR\_MODE environment variable or default to False.”

This seems to say ssr\_mode should have defaulted to False even if not specified in the Launch args, No?

Also, does Node20 refer to a NodeJS installation?

Also, why would reverting back to 5.4.0 have fixed it?

It appears something changed regarding ssr\_mode between 5.4 and 5.6. (?)

---

<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:** [November 22, 2024, 11:06am UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669/4 "2024-11-22T11:06:53Z")

</div>

I was in a hurry at the time, so I forgot to give a detailed explanation.😅  
To put it simply, there is a technical problem between Gradio 5, HF and the browser, and we are currently investigating it.

> **[Discord - Group Chat That’s All Fun & Games](https://discord.com/channels/879548962464493619/1295847667515129877)**
>
> Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

---

<div class="post-metadata">

**Author:** ![dlflannery](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dlflannery](https://discuss.huggingface.co/u/dlflannery)\
**Post date:** [November 22, 2024, 1:26pm UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669/5 "2024-11-22T13:26:09Z")

</div>

OK, thanks! BTW, are you suggesting that Discord is a better place for this discussion?

---

<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:** [November 22, 2024, 1:31pm UTC](https://discuss.huggingface.co/t/python-gradio-web-pages-suddenly-dont-render-properly-on-ipad-browsers/126669/6 "2024-11-22T13:31:09Z")

</div>

Yes, or rather, in general, Discord is more active than the forums and posts on HF. Recently, the Hub has been gradually renovated to make it easier to use for communication, but for the time being, we will probably have to rely on Discord for in-depth discussions.

> [@Join the Hugging Face Discord!](https://discuss.huggingface.co/t/join-the-hugging-face-discord/11263/19):
>
> Hey @John6666 @mmty ! hugs Feel free to try [this link](https://discord.gg/hugging-face-879548962464493619), or alternatively, you can try searching hugging face within Discord. Let me know if it works!
