Dmang69 commited on
Commit
3a0cbad
·
verified ·
1 Parent(s): 968b855

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -57,7 +57,8 @@ def chat_handler(message, history):
57
  # UI wiring for the Chat tab
58
  with gr.Blocks() as app:
59
 
60
- with gr.Tab("Chat"):
 
61
  chatbot = gr.Chatbot(label="Programming Assistant", type="messages")
62
  chat_input = gr.Textbox(label="Ask anything...", placeholder="Type a question here...")
63
  send_btn = gr.Button("Send")
@@ -80,6 +81,7 @@ with gr.Blocks() as app:
80
 
81
 
82
 
 
83
  # Callback for chat
84
  def chat_handler(message, history):
85
  history = history or []
 
57
  # UI wiring for the Chat tab
58
  with gr.Blocks() as app:
59
 
60
+ with gr.Tab("Chat"): # line 60
61
+ # everything inside the tab must be indented
62
  chatbot = gr.Chatbot(label="Programming Assistant", type="messages")
63
  chat_input = gr.Textbox(label="Ask anything...", placeholder="Type a question here...")
64
  send_btn = gr.Button("Send")
 
81
 
82
 
83
 
84
+
85
  # Callback for chat
86
  def chat_handler(message, history):
87
  history = history or []