aedupuga commited on
Commit
08d9681
·
verified ·
1 Parent(s): f5e182c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -560,17 +560,20 @@ agent = smolagents.CodeAgent(
560
  # UI (copied from w0g2EzpD7fUy, adjusted for app.py)
561
  # Minimal Gradio chat
562
 
563
- with gr.Blocks(theme=gr.themes.Default(primary_hue="blue")) as demo:
 
 
 
564
  gr.HTML("""
565
- <style>
566
- h2 { text-align: center; color: #1f77b4; }
567
- </style>
 
 
 
 
568
  """)
569
-
570
- gr.Markdown("""## 🤖 TechSpark AI Assistant
571
- Welcome to the TechSpark AI Assistant!
572
- Ask anything about **TechSpark staff, tools, courses or location of tools**
573
- This assistant is powered by **OpenAI's GPT model** via `smolagents`, accessing accurate information from our curated dataset verified by techspark staff!""")
574
  chat = gr.Chatbot(height=420)
575
  inp = gr.Textbox(placeholder="Ask your question in natural language.", label="Your question")
576
 
 
560
  # UI (copied from w0g2EzpD7fUy, adjusted for app.py)
561
  # Minimal Gradio chat
562
 
563
+
564
+ with gr.Blocks(theme=gr.themes.Glass()) as demo:
565
+
566
+ # Centered title and description using HTML
567
  gr.HTML("""
568
+ <div style="text-align: center;">
569
+ <h2 style="color:#1f77b4;">🤖 TechSpark AI Assistant</h2>
570
+ <p>Welcome to the TechSpark AI Assistant!<br>
571
+ Ask anything about <b>TechSpark staff, tools, courses or location of tools</b>.<br>
572
+ This assistant is powered by <b>OpenAI's GPT model</b> via <code>smolagents</code>,
573
+ accessing accurate information from our curated dataset verified by TechSpark staff!</p>
574
+ </div>
575
  """)
576
+
 
 
 
 
577
  chat = gr.Chatbot(height=420)
578
  inp = gr.Textbox(placeholder="Ask your question in natural language.", label="Your question")
579