Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def generate_story_from_caption(caption):
|
|
40 |
def text_to_speech(text):
|
41 |
headers = {"Authorization": f"Bearer {os.getenv('HUGGING_FACE')}"}
|
42 |
payload = {"inputs": text}
|
43 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
44 |
response = requests.post(API_URL, headers=headers, json=payload)
|
45 |
|
46 |
if response.status_code == 200:
|
|
|
40 |
def text_to_speech(text):
|
41 |
headers = {"Authorization": f"Bearer {os.getenv('HUGGING_FACE')}"}
|
42 |
payload = {"inputs": text}
|
43 |
+
API_URL = "https://api-inference.huggingface.co/models/espnet/kan-bayashi_ljspeech_vits"
|
44 |
response = requests.post(API_URL, headers=headers, json=payload)
|
45 |
|
46 |
if response.status_code == 200:
|