salomonsky commited on
Commit
bb2d94c
·
verified ·
1 Parent(s): 3a39ae5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def generate(
49
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
50
  response = " ".join(response.token.text for response in stream)
51
 
52
- st.textbox(response)
53
  audio_file = text_to_speech(response, speed=1.2)
54
  st.audio(audio_file, format="audio/mp3", start_time=0, key='audio')
55
 
 
49
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
50
  response = " ".join(response.token.text for response in stream)
51
 
52
+ st.text(response)
53
  audio_file = text_to_speech(response, speed=1.2)
54
  st.audio(audio_file, format="audio/mp3", start_time=0, key='audio')
55