rafaa commited on
Commit
5522dcd
·
verified ·
1 Parent(s): bb8c22d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -139,7 +139,10 @@ def generate_text(
139
 
140
  for response in stream:
141
  output += response.token.text
142
- yield output
 
 
 
143
 
144
  password = str(passwordInput)
145
  print("password = " + str(password))
@@ -155,6 +158,9 @@ def generate_text(
155
 
156
  return output
157
 
 
 
 
158
  passwordInput = gr.Textbox(label="TTS Password", type="password")
159
  mychatbot = gr.Chatbot(avatar_images=["./user.png", "./stella.jpg"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
160
 
@@ -167,4 +173,5 @@ chat = gr.ChatInterface(
167
  additional_inputs=[passwordInput],
168
  )
169
 
 
170
  chat.launch(show_api=False)
 
139
 
140
  for response in stream:
141
  output += response.token.text
142
+ yield output
143
+
144
+ audio_message = (pad_buffer, "This is an audio file")
145
+ history.append((None, audio_message))
146
 
147
  password = str(passwordInput)
148
  print("password = " + str(password))
 
158
 
159
  return output
160
 
161
+
162
+
163
+
164
  passwordInput = gr.Textbox(label="TTS Password", type="password")
165
  mychatbot = gr.Chatbot(avatar_images=["./user.png", "./stella.jpg"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
166
 
 
173
  additional_inputs=[passwordInput],
174
  )
175
 
176
+
177
  chat.launch(show_api=False)