Update app.py
Browse files
app.py
CHANGED
|
@@ -53,18 +53,20 @@ def chat_engine(message, history):
|
|
| 53 |
# ==========================================
|
| 54 |
# 4. GRADIO PRODUCTION UI
|
| 55 |
# ==========================================
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
| 68 |
|
| 69 |
if __name__ == "__main__":
|
| 70 |
demo.launch()
|
|
|
|
| 53 |
# ==========================================
|
| 54 |
# 4. GRADIO PRODUCTION UI
|
| 55 |
# ==========================================
|
| 56 |
+
# Apply the soft theme at the global Blocks level to comply with Gradio 5.x architecture
|
| 57 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 58 |
+
gr.Markdown("# 🚀 SALEETAI Coding Agent (Qwen-7B)")
|
| 59 |
+
gr.Markdown("### Professional-grade code logic for Rust, C++, and complex architectural patterns.")
|
| 60 |
+
|
| 61 |
+
gr.ChatInterface(
|
| 62 |
+
fn=chat_engine,
|
| 63 |
+
examples=[
|
| 64 |
+
"Implement a thread-safe Lock-Free Stack in C++.",
|
| 65 |
+
"Write a Doubly Linked List in safe Rust.",
|
| 66 |
+
"Optimize a Python script for high-density data processing."
|
| 67 |
+
],
|
| 68 |
+
cache_examples=False,
|
| 69 |
+
)
|
| 70 |
|
| 71 |
if __name__ == "__main__":
|
| 72 |
demo.launch()
|