amkj84 commited on
Commit
e36d0dc
·
verified ·
1 Parent(s): 302b71d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -1
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()