Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
# Set up the text-to-speech pipeline
|
| 5 |
-
pipe = pipeline('text-to-speech',
|
| 6 |
|
| 7 |
def text_to_speech(text):
|
| 8 |
result = pipe(text)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
# Set up the text-to-speech pipeline with a compatible model
|
| 5 |
+
pipe = pipeline('text-to-speech', 'Xenova/speecht5_tts');
|
| 6 |
|
| 7 |
def text_to_speech(text):
|
| 8 |
result = pipe(text)
|