mckplus commited on
Commit
9eb6f77
1 Parent(s): bd56c57

Update DocuChat.py

Browse files
Files changed (1) hide show
  1. DocuChat.py +2 -2
DocuChat.py CHANGED
@@ -18,9 +18,9 @@ class LangchainConversation:
18
  def __init__(self):
19
  self.file_input = pn.widgets.FileInput(height=45)
20
  self.openaikey = pn.widgets.PasswordInput(value="", placeholder="Enter your OpenAI API Key here...", height=45)
21
- self.chatbox = pn.widgets.ChatBox(height=300, primary_name="User")
22
  self.user_input = pn.widgets.TextInput(placeholder="Type your question...")
23
- self.send_button = pn.widgets.Button(name="Send", width=100)
24
  self.send_button.on_click(self._chat)
25
 
26
  # decorator to disable the send button while the AI is thinking
 
18
  def __init__(self):
19
  self.file_input = pn.widgets.FileInput(height=45)
20
  self.openaikey = pn.widgets.PasswordInput(value="", placeholder="Enter your OpenAI API Key here...", height=45)
21
+ self.chatbox = pn.widgets.ChatBox(height=300, primary_name="User", show_input=False)
22
  self.user_input = pn.widgets.TextInput(placeholder="Type your question...")
23
+ self.send_button = pn.widgets.Button(name="Send", width=0)
24
  self.send_button.on_click(self._chat)
25
 
26
  # decorator to disable the send button while the AI is thinking