broadfield commited on
Commit
95c46f6
·
verified ·
1 Parent(s): a855168

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,10 +35,10 @@ def generate(prompt,history,max_new_tokens,seed):
35
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
36
  output = ""
37
 
38
- for response in stream:
39
  output += response.token.text
40
- #yield output
41
- yield from pp.stream_tts(output)
42
 
43
  with gr.Blocks() as iface:
44
  gr.HTML("""""")
 
35
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
36
  output = ""
37
 
38
+ '''for response in stream:
39
  output += response.token.text
40
+ #yield output '''
41
+ yield from pp.stream_tts(stream)
42
 
43
  with gr.Blocks() as iface:
44
  gr.HTML("""""")