Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -521,7 +521,7 @@ agent = smolagents.CodeAgent(
|
|
| 521 |
# --- Page config ---
|
| 522 |
st.set_page_config(page_title="TechSpark AI Assistant", layout="wide")
|
| 523 |
|
| 524 |
-
|
| 525 |
|
| 526 |
# Minimal Gradio chat for TechSpark Agent
|
| 527 |
with gr.Blocks(
|
|
@@ -535,17 +535,14 @@ with gr.Blocks(
|
|
| 535 |
# 🤖 TechSpark AI Assistant
|
| 536 |
Welcome to the TechSpark AI Assistant!
|
| 537 |
|
| 538 |
-
Ask anything about **TechSpark staff, tools, courses
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
💡 Example questions you can try:
|
| 542 |
-
- "Who is Ed?"
|
| 543 |
-
- "Who should I talk to for building a wooden table?"
|
| 544 |
-
- "How do I access the laser cutter?"
|
| 545 |
-
"""
|
| 546 |
)
|
| 547 |
|
| 548 |
# --- Chat interface ---
|
|
|
|
|
|
|
|
|
|
| 549 |
chat = gr.Chatbot(label="TechSpark Assistant", height=450)
|
| 550 |
inp = gr.Textbox(
|
| 551 |
placeholder="Type your question here...",
|
|
|
|
| 521 |
# --- Page config ---
|
| 522 |
st.set_page_config(page_title="TechSpark AI Assistant", layout="wide")
|
| 523 |
|
| 524 |
+
import gradio as gr
|
| 525 |
|
| 526 |
# Minimal Gradio chat for TechSpark Agent
|
| 527 |
with gr.Blocks(
|
|
|
|
| 535 |
# 🤖 TechSpark AI Assistant
|
| 536 |
Welcome to the TechSpark AI Assistant!
|
| 537 |
|
| 538 |
+
Ask anything about **TechSpark staff, tools, courses or location of tools**
|
| 539 |
+
This assistant is powered by **OpenAI's GPT model** via `smolagents`, accessing accurate information from our curated dataset verified by techspark staff! """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 540 |
)
|
| 541 |
|
| 542 |
# --- Chat interface ---
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
|
| 546 |
chat = gr.Chatbot(label="TechSpark Assistant", height=450)
|
| 547 |
inp = gr.Textbox(
|
| 548 |
placeholder="Type your question here...",
|