Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -968,11 +968,11 @@ with gr.Blocks(title=APP_NAME) as demo:
|
|
| 968 |
# TAB 1: CHAT & CODE
|
| 969 |
with gr.Tab("💬 Chat & Code"):
|
| 970 |
with gr.Column(elem_id="chat-container"):
|
|
|
|
| 971 |
chatbot = gr.Chatbot(
|
| 972 |
value=[{"role": "assistant", "content": "Hello! I am ARISE AI. How can I help you with your code today?"}],
|
| 973 |
height=600,
|
| 974 |
show_label=False,
|
| 975 |
-
show_copy_button=True,
|
| 976 |
elem_id="chatbot-ui"
|
| 977 |
)
|
| 978 |
with gr.Column(elem_id="input-container"):
|
|
@@ -1116,7 +1116,7 @@ if __name__ == "__main__":
|
|
| 1116 |
max_size=20,
|
| 1117 |
).launch(
|
| 1118 |
theme=gr.themes.Soft(),
|
| 1119 |
-
css=CSS,
|
| 1120 |
allowed_paths=[str(DATA_DIR.resolve())], # 👈 Fixes Download Error
|
| 1121 |
show_error=True,
|
| 1122 |
share=False,
|
|
|
|
| 968 |
# TAB 1: CHAT & CODE
|
| 969 |
with gr.Tab("💬 Chat & Code"):
|
| 970 |
with gr.Column(elem_id="chat-container"):
|
| 971 |
+
# FIXED: Removed 'show_copy_button' for Gradio 6 compatibility
|
| 972 |
chatbot = gr.Chatbot(
|
| 973 |
value=[{"role": "assistant", "content": "Hello! I am ARISE AI. How can I help you with your code today?"}],
|
| 974 |
height=600,
|
| 975 |
show_label=False,
|
|
|
|
| 976 |
elem_id="chatbot-ui"
|
| 977 |
)
|
| 978 |
with gr.Column(elem_id="input-container"):
|
|
|
|
| 1116 |
max_size=20,
|
| 1117 |
).launch(
|
| 1118 |
theme=gr.themes.Soft(),
|
| 1119 |
+
css=CSS,
|
| 1120 |
allowed_paths=[str(DATA_DIR.resolve())], # 👈 Fixes Download Error
|
| 1121 |
show_error=True,
|
| 1122 |
share=False,
|