Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def generate_story(scenario):
|
|
| 48 |
#text to speech
|
| 49 |
|
| 50 |
def text2speech(message):
|
| 51 |
-
API_URL = "https://api-inference.huggingface.co/models/espnet/
|
| 52 |
headers = {"Authorization": "Bearer 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"}
|
| 53 |
payloads = {
|
| 54 |
"inputs":message
|
|
|
|
| 48 |
#text to speech
|
| 49 |
|
| 50 |
def text2speech(message):
|
| 51 |
+
API_URL = "https://api-inference.huggingface.co/models/espnet/fastspeech2_conformer"
|
| 52 |
headers = {"Authorization": "Bearer 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"}
|
| 53 |
payloads = {
|
| 54 |
"inputs":message
|