Spaces:
Sleeping
Sleeping
Fix runtime error: move theme/css from launch() to Blocks() constructor
Browse filesgr.Blocks.launch() does not accept theme or css kwargs — these are
constructor parameters. Moves them to gr.Blocks() where they belong.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -1238,6 +1238,8 @@ def create_interface():
|
|
| 1238 |
"""Build the complete Gradio interface."""
|
| 1239 |
|
| 1240 |
with gr.Blocks(
|
|
|
|
|
|
|
| 1241 |
title="Codette v2.0",
|
| 1242 |
) as demo:
|
| 1243 |
|
|
@@ -1446,4 +1448,4 @@ Created by **Jonathan Harrison** to explore recursive reasoning, multi-perspecti
|
|
| 1446 |
|
| 1447 |
if __name__ == "__main__":
|
| 1448 |
demo = create_interface()
|
| 1449 |
-
demo.launch(
|
|
|
|
| 1238 |
"""Build the complete Gradio interface."""
|
| 1239 |
|
| 1240 |
with gr.Blocks(
|
| 1241 |
+
theme=gr.themes.Soft(),
|
| 1242 |
+
css=CUSTOM_CSS,
|
| 1243 |
title="Codette v2.0",
|
| 1244 |
) as demo:
|
| 1245 |
|
|
|
|
| 1448 |
|
| 1449 |
if __name__ == "__main__":
|
| 1450 |
demo = create_interface()
|
| 1451 |
+
demo.launch()
|