Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,4 +30,28 @@ with gr.Blocks(title="Groq LLM Chatbot") as demo:
|
|
30 |
gr.Markdown(
|
31 |
"""
|
32 |
# 🧠 **Groq LLM Chatbot**
|
33 |
-
Interact with a powerful LLM in real-time using Groq's
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
gr.Markdown(
|
31 |
"""
|
32 |
# 🧠 **Groq LLM Chatbot**
|
33 |
+
Interact with a powerful LLM in real-time using Groq's API.
|
34 |
+
"""
|
35 |
+
)
|
36 |
+
with gr.Row():
|
37 |
+
gr.Image(value="https://via.placeholder.com/100x100.png?text=LOGO", label="Logo", tool="none", interactive=False)
|
38 |
+
gr.Markdown(
|
39 |
+
"""
|
40 |
+
**Created by ATIF MEHMOOD**
|
41 |
+
_Experience the next generation of AI-powered conversations._
|
42 |
+
"""
|
43 |
+
)
|
44 |
+
chatbot_ui = gr.Chatbot(label="Chat Interface")
|
45 |
+
user_input = gr.Textbox(
|
46 |
+
placeholder="Type your message here...",
|
47 |
+
label="Your Message",
|
48 |
+
lines=2,
|
49 |
+
)
|
50 |
+
submit_btn = gr.Button(value="Send")
|
51 |
+
|
52 |
+
# Bind functions
|
53 |
+
history_state = gr.State([])
|
54 |
+
submit_btn.click(chatbot, [user_input, history_state], [chatbot_ui, history_state])
|
55 |
+
user_input.submit(chatbot, [user_input, history_state], [chatbot_ui, history_state])
|
56 |
+
|
57 |
+
demo.launch()
|