DiamondYin commited on
Commit
b7b1355
·
1 Parent(s): 66b3462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -109,13 +109,13 @@ with gr.Blocks(css = """#col_image{width: 650px; margin-left: auto; margin-right
109
  output_html.visible = False
110
  image1= gr.Image("assets/NPCtest1.png",elem_id = "col_image")
111
  #assistant_character = gr.HTML(label=None, value=CHAR_IDLE_HTML, show_label=False)
112
- with gr.Column(scale=0.1):
113
- chatbot = gr.Chatbot(label='Send a text or a voice input').style(height=285)
114
- with gr.Row():
115
- msg = gr.Textbox(placeholder='Write a chat & press Enter.', show_label=False).style(container=False)
116
- with gr.Column(scale=0.5):
117
- audio_input = gr.Audio(source="microphone", type='filepath', show_label=False).style(container=False)
118
- button = gr.Button(value="Send")
119
 
120
  msg.submit(get_chat_history, [msg, chatbot], [msg, chatbot]
121
  ).then(get_response, [chatbot, audio_input], [chatbot, output_html]
 
109
  output_html.visible = False
110
  image1= gr.Image("assets/NPCtest1.png",elem_id = "col_image")
111
  #assistant_character = gr.HTML(label=None, value=CHAR_IDLE_HTML, show_label=False)
112
+ #with gr.Column(scale=0.1):
113
+ chatbot = gr.Chatbot(label='Send a text or a voice input').style(height=285)
114
+ with gr.Row():
115
+ msg = gr.Textbox(placeholder='Write a chat & press Enter.', show_label=False).style(container=False)
116
+ with gr.Column(scale=0.5):
117
+ audio_input = gr.Audio(source="microphone", type='filepath', show_label=False).style(container=False)
118
+ button = gr.Button(value="Send")
119
 
120
  msg.submit(get_chat_history, [msg, chatbot], [msg, chatbot]
121
  ).then(get_response, [chatbot, audio_input], [chatbot, output_html]