Themebuilder: Google font is displayed in Colab but not displayed in Huggingface Hub #10675
Open
1 task done
Labels
bug
Something isn't working
Describe the bug
Update: this is caused by the bug reported in #10101, setting
ssr_mode=False
inlaunch()
is a workaroundUpdate 2: apparently
ssr_mode=False
works for a space that uses the theme but not for the Theme preview itself, see https://huggingface.co/spaces/crcdng/font_testWhen a Google font is set in the Gradio Themebuilder in Google Colab it is displayed correctly. When uploading the theme to Huggingface Hub as a Space though, the font is not displayed.
Have you searched existing issues? 🔎
Reproduction
Prerequisites: Google Colab, Huggingface account, Huggingface token
To reproduce, in Google Colab
In
Main Font
->Core Fonts
->Font 1
enter a Google font, e.g.Oxanium
and tick theGoogle font
checkmark.The font in the Themebuilder demo will change to the selected one as expected.
Then use
Upload to Huggingface Hub
feature.In the Huggingface Hub Space, a default font is displayed instead of the selected one.
Screenshot
Font displayed in Colab
Font displayed in the HF space
Logs
example space uploaded from Colab: https://huggingface.co/spaces/crcdng/font_test
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: