Spaces:
Sleeping
Sleeping
Commit ·
aef1ad3
1
Parent(s): 2dec4b5
Remove ssr_mode=False and stale css kwarg from launch()
Browse filesIn Gradio 6.x, ssr_mode=False disables server-side rendering — if the
JS bundle fails to load inside the HF iframe, the page is completely
blank. Removing it restores the default SSR behaviour. css was already
moved to gr.Blocks(css=css).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -1150,9 +1150,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 1150 |
|
| 1151 |
if __name__ == "__main__":
|
| 1152 |
demo.queue(max_size=30).launch(
|
| 1153 |
-
css=css,
|
| 1154 |
mcp_server=True,
|
| 1155 |
-
ssr_mode=False,
|
| 1156 |
show_error=True,
|
| 1157 |
allowed_paths=["examples"],
|
| 1158 |
)
|
|
|
|
| 1150 |
|
| 1151 |
if __name__ == "__main__":
|
| 1152 |
demo.queue(max_size=30).launch(
|
|
|
|
| 1153 |
mcp_server=True,
|
|
|
|
| 1154 |
show_error=True,
|
| 1155 |
allowed_paths=["examples"],
|
| 1156 |
)
|