AashitaK commited on
Commit
f2970c1
·
verified ·
1 Parent(s): 6fc479a

Update utils/chatbot_interface3.py

Browse files
Files changed (1) hide show
  1. 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
- # with gr.Row(elem_id="input-container"):
112
- user_input = gr.Textbox(
113
- lines=2,
114
- label=self.input_label,
115
- placeholder=self.input_placeholder,
116
- elem_id="chat-input"
117
- )
118
-
119
- reset = gr.ClearButton(
120
- value="🔄",
121
- variant="secondary",
122
- elem_id="reset-button",
123
- size="md"
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: