VanYsa commited on
Commit
d1b2128
·
1 Parent(s): b33a63e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,6 +5,7 @@ import os
5
  import soundfile as sf
6
  import tempfile
7
  import uuid
 
8
  import torch
9
  import time
10
 
@@ -183,7 +184,7 @@ def bot_response(message: str,
183
  outputs = []
184
  for text in streamer:
185
  outputs.append(text)
186
- #print(outputs)
187
  yield "".join(outputs)
188
 
189
  with gr.Blocks(
@@ -229,7 +230,7 @@ with gr.Blocks(
229
  )
230
 
231
  chat_msg = chat_input.change(add_message, [chatbot, chat_input], [chatbot])
232
- bot_msg = chat_msg.then(bot_response, [chat_input, chatbot, 0.9, 256], chatbot, api_name="bot_response")
233
  # bot_msg.then(lambda: gr.Textbox(interactive=False), None, [chat_input])
234
 
235
  submit_button.click(
 
5
  import soundfile as sf
6
  import tempfile
7
  import uuid
8
+ import transformers
9
  import torch
10
  import time
11
 
 
184
  outputs = []
185
  for text in streamer:
186
  outputs.append(text)
187
+ print(outputs)
188
  yield "".join(outputs)
189
 
190
  with gr.Blocks(
 
230
  )
231
 
232
  chat_msg = chat_input.change(add_message, [chatbot, chat_input], [chatbot])
233
+ bot_msg = chat_msg.then(bot, [chatbot, chat_input], chatbot, api_name="bot_response")
234
  # bot_msg.then(lambda: gr.Textbox(interactive=False), None, [chat_input])
235
 
236
  submit_button.click(