Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def generate(prompt,history,max_new_tokens,seed):
|
|
41 |
output += response.token.text
|
42 |
buf += response.token.text
|
43 |
if response.token.text == "\n" or response.token.text == "</s>" or response.token.text == ". ":
|
44 |
-
yield [(prompt,output)],
|
45 |
buf=""
|
46 |
|
47 |
def tts(inp,voice,length,noise,width,sen_pause):
|
|
|
41 |
output += response.token.text
|
42 |
buf += response.token.text
|
43 |
if response.token.text == "\n" or response.token.text == "</s>" or response.token.text == ". ":
|
44 |
+
yield [(prompt,output)], output
|
45 |
buf=""
|
46 |
|
47 |
def tts(inp,voice,length,noise,width,sen_pause):
|