SALEETAI commited on
Commit
e9b33cc
·
verified ·
1 Parent(s): 95c1f9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -53,18 +53,20 @@ def chat_engine(message, history):
53
  # ==========================================
54
  # 4. GRADIO PRODUCTION UI
55
  # ==========================================
56
- demo = gr.ChatInterface(
57
- fn=chat_engine,
58
- title="🚀 SALEETAI Coding Agent (Qwen-7B)",
59
- description="Professional-grade code logic for Rust, C++, and complex architectural patterns.",
60
- theme=gr.themes.Soft(),
61
- examples=[
62
- "Implement a thread-safe Lock-Free Stack in C++.",
63
- "Write a Doubly Linked List in safe Rust.",
64
- "Optimize a Python script for high-density data processing."
65
- ],
66
- cache_examples=False,
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()