mrbeliever commited on
Commit
186fdbf
1 Parent(s): a265f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -132,7 +132,6 @@ output_text_component = gr.Textbox(
132
  value="",
133
  placeholder="Generated text will appear here",
134
  scale=8,
135
- multiline=True
136
  )
137
 
138
  def copy_text():
@@ -158,7 +157,9 @@ output_text_component_copy = gr.OutputComponent([output_text_component, output_c
158
 
159
  text_prompt_component = gr.Textbox(
160
  placeholder="Hi there! [press Enter]",
161
- scale=8
 
 
162
  )
163
 
164
  chatbot_component = gr.Chatbot(
@@ -218,7 +219,7 @@ with gr.Blocks() as demo:
218
  outputs=[output_text_component, chatbot_component],
219
  queue=False
220
  ).then(
221
- fn=bot, inputs=bot_inputs, outputs=[output_text_component_copy],
222
  )
223
 
224
  upload_button_component.upload(
@@ -230,3 +231,5 @@ with gr.Blocks() as demo:
230
 
231
  demo.queue(max_size=99).launch(debug=False, show_error=True)
232
 
 
 
 
132
  value="",
133
  placeholder="Generated text will appear here",
134
  scale=8,
 
135
  )
136
 
137
  def copy_text():
 
157
 
158
  text_prompt_component = gr.Textbox(
159
  placeholder="Hi there! [press Enter]",
160
+ show_label=False,
161
+ autofocus=True,
162
+ scale=8,
163
  )
164
 
165
  chatbot_component = gr.Chatbot(
 
219
  outputs=[output_text_component, chatbot_component],
220
  queue=False
221
  ).then(
222
+ fn=bot, inputs=bot_inputs, outputs=[ output_text_component_copy],
223
  )
224
 
225
  upload_button_component.upload(
 
231
 
232
  demo.queue(max_size=99).launch(debug=False, show_error=True)
233
 
234
+
235
+