Reality123b commited on
Commit
09cca9f
·
verified ·
1 Parent(s): f34df8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -31,15 +31,16 @@ def get_response(user_input):
31
  def chat_interface():
32
  with gr.Blocks() as demo:
33
  with gr.Row():
34
- with gr.Column(scale=1):
35
  chat_output = gr.Chatbot(
36
  elem_id="chat-box",
37
  label="Xylaria 1.4 Senoa Chatbot",
38
- show_label=False
 
39
  )
40
 
41
- with gr.Row(elem_id="input-row", scale=0.2):
42
- with gr.Column(scale=0.8):
43
  input_textbox = gr.Textbox(
44
  label="Type your message",
45
  placeholder="Ask me anything...",
@@ -49,7 +50,7 @@ def chat_interface():
49
  elem_id="user-input",
50
  show_label=False
51
  )
52
- with gr.Column(scale=0.2):
53
  send_button = gr.Button("Send", elem_id="send-btn")
54
 
55
  def submit_input(user_input, chat_history):
 
31
  def chat_interface():
32
  with gr.Blocks() as demo:
33
  with gr.Row():
34
+ with gr.Column(min_width=600):
35
  chat_output = gr.Chatbot(
36
  elem_id="chat-box",
37
  label="Xylaria 1.4 Senoa Chatbot",
38
+ show_label=False,
39
+ type="messages" # Specify type for correct message format
40
  )
41
 
42
+ with gr.Row(elem_id="input-row", min_width=600):
43
+ with gr.Column(min_width=480):
44
  input_textbox = gr.Textbox(
45
  label="Type your message",
46
  placeholder="Ask me anything...",
 
50
  elem_id="user-input",
51
  show_label=False
52
  )
53
+ with gr.Column(min_width=120):
54
  send_button = gr.Button("Send", elem_id="send-btn")
55
 
56
  def submit_input(user_input, chat_history):