Spaces:
Sleeping
Sleeping
Upload 6 files
Browse files
app.py
CHANGED
|
@@ -437,9 +437,7 @@ Improved:"""
|
|
| 437 |
yield token
|
| 438 |
thread.join()
|
| 439 |
|
| 440 |
-
# ========================
|
| 441 |
# 4) Gradio UI (Optimized for Hugging Face)
|
| 442 |
-
# ========================
|
| 443 |
|
| 444 |
ASSISTANT: Optional[HybridCodeAssistant] = None
|
| 445 |
|
|
@@ -480,9 +478,12 @@ def chat(message: str, history: list):
|
|
| 480 |
|
| 481 |
def create_ui():
|
| 482 |
"""Create Gradio UI optimized for Hugging Face"""
|
|
|
|
|
|
|
|
|
|
| 483 |
with gr.Blocks(
|
| 484 |
title="Codey Bryant 3.0 - SOTA RAG Coding Assistant",
|
| 485 |
-
theme=
|
| 486 |
css="""
|
| 487 |
.gradio-container { max-width: 1200px; margin: auto; }
|
| 488 |
.chatbot { min-height: 500px; }
|
|
|
|
| 437 |
yield token
|
| 438 |
thread.join()
|
| 439 |
|
|
|
|
| 440 |
# 4) Gradio UI (Optimized for Hugging Face)
|
|
|
|
| 441 |
|
| 442 |
ASSISTANT: Optional[HybridCodeAssistant] = None
|
| 443 |
|
|
|
|
| 478 |
|
| 479 |
def create_ui():
|
| 480 |
"""Create Gradio UI optimized for Hugging Face"""
|
| 481 |
+
# Use a compatible theme
|
| 482 |
+
theme = gr.themes.Soft()
|
| 483 |
+
|
| 484 |
with gr.Blocks(
|
| 485 |
title="Codey Bryant 3.0 - SOTA RAG Coding Assistant",
|
| 486 |
+
theme=theme, # Pass theme here
|
| 487 |
css="""
|
| 488 |
.gradio-container { max-width: 1200px; margin: auto; }
|
| 489 |
.chatbot { min-height: 500px; }
|