yizhangliu commited on
Commit
eec819d
·
1 Parent(s): cd1df3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -145,13 +145,15 @@ with gr.Blocks(title='Text to Image') as demo:
145
 
146
  # with gr.Group(elem_id="page_2", visible=False) as page_2:
147
  with gr.Row(elem_id="prompt_row"):
148
- chatbot = gr.Chatbot(elem_id="chat_bot").style(color_map=("green", "gray"))
 
149
  with gr.Row():
150
- prompt_input0 = gr.Textbox(lines=2, label="prompt")
151
- chat_history = gr.Textbox(lines=4, label="prompt", visible=True)
152
- submit_btn = gr.Button(value = "submit",elem_id="erase-btn").style(
153
  margin=True,
154
  rounded=(True, True, True, True),
 
155
  )
156
  submit_btn.click(fn=chat,
157
  inputs=[prompt_input0, chat_history],
 
145
 
146
  # with gr.Group(elem_id="page_2", visible=False) as page_2:
147
  with gr.Row(elem_id="prompt_row"):
148
+ chatbot = gr.Chatbot(elem_id="chat_bot").style(color_map=("green", "gray"))
149
+ chatbot.change(None, show_progress=False)
150
  with gr.Row():
151
+ prompt_input0 = gr.Textbox(lines=1, label="prompt",show_label=False)
152
+ chat_history = gr.Textbox(lines=4, label="prompt", visible=False)
153
+ submit_btn = gr.Button(value = "submit",elem_id="submit-btn").style(
154
  margin=True,
155
  rounded=(True, True, True, True),
156
+ width=100
157
  )
158
  submit_btn.click(fn=chat,
159
  inputs=[prompt_input0, chat_history],