Spaces:
Sleeping
Sleeping
Claude commited on
Commit ·
eaed479
1
Parent(s): 6844a41
fix: Remove Gradio v6 incompatible parameters (type='messages' from Chatbot, move theme/css to launch)
Browse files
app.py
CHANGED
|
@@ -1068,8 +1068,6 @@ def create_interface():
|
|
| 1068 |
"""Build the complete Gradio interface."""
|
| 1069 |
|
| 1070 |
with gr.Blocks(
|
| 1071 |
-
theme=gr.themes.Soft(),
|
| 1072 |
-
css=CUSTOM_CSS,
|
| 1073 |
title="Codette v2.0",
|
| 1074 |
) as demo:
|
| 1075 |
|
|
@@ -1106,7 +1104,6 @@ def create_interface():
|
|
| 1106 |
with gr.Column(scale=3):
|
| 1107 |
chatbot = gr.Chatbot(
|
| 1108 |
height=500,
|
| 1109 |
-
type="messages",
|
| 1110 |
label="Codette Reasoning",
|
| 1111 |
show_label=False,
|
| 1112 |
)
|
|
@@ -1265,4 +1262,4 @@ Created by **Jonathan Harrison** to explore recursive reasoning, multi-perspecti
|
|
| 1265 |
|
| 1266 |
if __name__ == "__main__":
|
| 1267 |
demo = create_interface()
|
| 1268 |
-
demo.launch()
|
|
|
|
| 1068 |
"""Build the complete Gradio interface."""
|
| 1069 |
|
| 1070 |
with gr.Blocks(
|
|
|
|
|
|
|
| 1071 |
title="Codette v2.0",
|
| 1072 |
) as demo:
|
| 1073 |
|
|
|
|
| 1104 |
with gr.Column(scale=3):
|
| 1105 |
chatbot = gr.Chatbot(
|
| 1106 |
height=500,
|
|
|
|
| 1107 |
label="Codette Reasoning",
|
| 1108 |
show_label=False,
|
| 1109 |
)
|
|
|
|
| 1262 |
|
| 1263 |
if __name__ == "__main__":
|
| 1264 |
demo = create_interface()
|
| 1265 |
+
demo.launch(theme=gr.themes.Soft(), css=CUSTOM_CSS)
|