Report: Not working
Hugging Face Forums [Unofficial]
April 5, 2026
Exit code: 1. Reason: Traceback (most recent call last): File “/app/app.py”, line 102, in with gr.Blocks(theme=gr.themes.Soft(primary_hue=“indigo”)) as demo: ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.13/site-packages/gradio/blocks.py”, line 1071, in _init _ super()._init _(render=False, **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BlockContext._init _() got an unexpected keyword argument ‘theme’
Container logs:
===== Application Startup at 2026-04-05 20:22:09 =====
Traceback (most recent call last):
File "/app/app.py", line 102, in <module>
with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo")) as demo:
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/gradio/blocks.py", line 1071, in __init__
super().__init__(render=False, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BlockContext.__init__() got an unexpected keyword argument 'theme'
Traceback (most recent call last):
File "/app/app.py", line 102, in <module>
with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo")) as demo:
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/gradio/blocks.py", line 1071, in __init__
super().__init__(render=False, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BlockContext.__init__() got an unexpected keyword argument 'theme'
Anycoder 7d5a189e - a Hugging Face Space by Gertie2013
@John6666
Discussion in the ATmosphere