almncarlo commited on
Commit
6864843
1 Parent(s): bbc3676

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,6 +5,7 @@ import os
5
  import soundfile as sf
6
  import tempfile
7
  import uuid
 
8
 
9
  import torch
10
  import transformers
@@ -247,7 +248,6 @@ def on_src_or_tgt_lang_change(src_lang_value, tgt_lang_value, pnc_value):
247
  return src_lang, tgt_lang, pnc
248
 
249
  def txt2speech(text):
250
- print("Initializing text-to-speech conversion...")
251
  API_URL = "https://api-inference.huggingface.co/models/espnet/kan-bayashi_ljspeech_vits"
252
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
253
  payloads = {'inputs': text}
 
5
  import soundfile as sf
6
  import tempfile
7
  import uuid
8
+ import requests
9
 
10
  import torch
11
  import transformers
 
248
  return src_lang, tgt_lang, pnc
249
 
250
  def txt2speech(text):
 
251
  API_URL = "https://api-inference.huggingface.co/models/espnet/kan-bayashi_ljspeech_vits"
252
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
253
  payloads = {'inputs': text}