Spaces:
Sleeping
Sleeping
Update utils/chatbot_interface3.py
Browse files- utils/chatbot_interface3.py +14 -14
utils/chatbot_interface3.py
CHANGED
@@ -108,20 +108,20 @@ class ChatbotInterface:
|
|
108 |
chatbot_output = gr.Chatbot(label=self.output_label, type="messages")
|
109 |
|
110 |
# Use a gr.Row container as the input box with an integrated submit button.
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
|
126 |
# Define a local function to reset input
|
127 |
def reset_output() -> list:
|
|
|
108 |
chatbot_output = gr.Chatbot(label=self.output_label, type="messages")
|
109 |
|
110 |
# Use a gr.Row container as the input box with an integrated submit button.
|
111 |
+
with gr.Row(elem_id="input-container", equal_height=True):
|
112 |
+
user_input = gr.Textbox(
|
113 |
+
lines=2,
|
114 |
+
show_label=False, # Hide label for a unified look.
|
115 |
+
elem_id="chat-input",
|
116 |
+
placeholder=self.input_placeholder,
|
117 |
+
scale=500,
|
118 |
+
)
|
119 |
+
reset = gr.ClearButton(
|
120 |
+
value="Reset 🔄",
|
121 |
+
variant="secondary",
|
122 |
+
elem_id="reset-button",
|
123 |
+
size="lg"
|
124 |
+
)
|
125 |
|
126 |
# Define a local function to reset input
|
127 |
def reset_output() -> list:
|