phamngoctukts commited on
Commit
d5adc26
·
verified ·
1 Parent(s): 7cc1c23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -198,7 +198,7 @@ with gr.Blocks() as demo:
198
  chatbot = gr.Chatbot(label="Nội dung trò chuyện", type="messages")
199
  output_audio = gr.Audio(label="Trợ lý", autoplay=True)
200
  with gr.Row():
201
- output_image = gr.Image(label="Hình ảnh sau xử lý", sources="clipboard", type="filepath",visible=True)
202
  state = gr.State(value=AppState())
203
  stream = input_audio.stream(
204
  process_audio,
@@ -213,7 +213,7 @@ with gr.Blocks() as demo:
213
  [output_audio, state],
214
  )
215
  respond.then(lambda s: s.conversation, [state], [chatbot])
216
- respond.then(lambda s: s.image, [state], [output_image])
217
  restart = output_audio.stop(
218
  start_recording_user,
219
  [state, input_image],
 
198
  chatbot = gr.Chatbot(label="Nội dung trò chuyện", type="messages")
199
  output_audio = gr.Audio(label="Trợ lý", autoplay=True)
200
  with gr.Row():
201
+ output_image = gr.Image(label="Hình ảnh sau xử lý", sources="clipboard", type="filepath",visible=False)
202
  state = gr.State(value=AppState())
203
  stream = input_audio.stream(
204
  process_audio,
 
213
  [output_audio, state],
214
  )
215
  respond.then(lambda s: s.conversation, [state], [chatbot])
216
+ #respond.then(lambda s: s.image, [state], [output_image])
217
  restart = output_audio.stop(
218
  start_recording_user,
219
  [state, input_image],