Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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 |
|