rafaa commited on
Commit
54ae77d
·
verified ·
1 Parent(s): 8e0cde0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -137,7 +137,6 @@ def generate(
137
  for response in stream:
138
  output += response.token.text
139
  yield output
140
- return output
141
 
142
  if passwordInput != None:
143
  print("Using TTS!")
@@ -145,6 +144,8 @@ def generate(
145
  else:
146
  print("Not using TTS!")
147
 
 
 
148
  passwordInput = gr.Textbox(label="TTS Password", type="password")
149
  mychatbot = gr.Chatbot(avatar_images=["./user.png", "./stella.jpg"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
150
 
 
137
  for response in stream:
138
  output += response.token.text
139
  yield output
 
140
 
141
  if passwordInput != None:
142
  print("Using TTS!")
 
144
  else:
145
  print("Not using TTS!")
146
 
147
+ return output
148
+
149
  passwordInput = gr.Textbox(label="TTS Password", type="password")
150
  mychatbot = gr.Chatbot(avatar_images=["./user.png", "./stella.jpg"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
151