Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,8 +30,8 @@ def get_response(user_input):
|
|
| 30 |
|
| 31 |
def chat_interface():
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
-
with gr.Row():
|
| 34 |
-
with gr.Column(
|
| 35 |
chat_output = gr.Chatbot(
|
| 36 |
elem_id="chat-box",
|
| 37 |
label="Xylaria 1.4 Senoa Chatbot",
|
|
@@ -39,8 +39,8 @@ def chat_interface():
|
|
| 39 |
type="messages" # Specify type for correct message format
|
| 40 |
)
|
| 41 |
|
| 42 |
-
with gr.Row(elem_id="input-row"
|
| 43 |
-
with gr.Column(
|
| 44 |
input_textbox = gr.Textbox(
|
| 45 |
label="Type your message",
|
| 46 |
placeholder="Ask me anything...",
|
|
@@ -50,7 +50,7 @@ def chat_interface():
|
|
| 50 |
elem_id="user-input",
|
| 51 |
show_label=False
|
| 52 |
)
|
| 53 |
-
with gr.Column(
|
| 54 |
send_button = gr.Button("Send", elem_id="send-btn")
|
| 55 |
|
| 56 |
def submit_input(user_input, chat_history):
|
|
|
|
| 30 |
|
| 31 |
def chat_interface():
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
+
with gr.Row(): # No 'min_width' argument here
|
| 34 |
+
with gr.Column(): # No 'min_width' argument here
|
| 35 |
chat_output = gr.Chatbot(
|
| 36 |
elem_id="chat-box",
|
| 37 |
label="Xylaria 1.4 Senoa Chatbot",
|
|
|
|
| 39 |
type="messages" # Specify type for correct message format
|
| 40 |
)
|
| 41 |
|
| 42 |
+
with gr.Row(elem_id="input-row"):
|
| 43 |
+
with gr.Column(): # No 'min_width' argument here
|
| 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():
|
| 54 |
send_button = gr.Button("Send", elem_id="send-btn")
|
| 55 |
|
| 56 |
def submit_input(user_input, chat_history):
|