ylacombe HF staff commited on
Commit
a80fddf
1 Parent(s): 3a081a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,6 @@ import torch
10
  import nltk # we'll use this to split into sentences
11
  nltk.download('punkt')
12
  import uuid
13
- import soundfile as SF
14
 
15
  from TTS.api import TTS
16
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True)
@@ -20,6 +19,7 @@ title = "Speak with Llama2 70B"
20
  DESCRIPTION = """# Speak with Llama2 70B"""
21
  css = """.toast-wrap { display: none !important } """
22
 
 
23
  HF_TOKEN = os.environ.get("HF_TOKEN")
24
  # will use api to restart space on a unrecoverable error
25
  api = HfApi(token=HF_TOKEN)
 
10
  import nltk # we'll use this to split into sentences
11
  nltk.download('punkt')
12
  import uuid
 
13
 
14
  from TTS.api import TTS
15
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True)
 
19
  DESCRIPTION = """# Speak with Llama2 70B"""
20
  css = """.toast-wrap { display: none !important } """
21
 
22
+ from huggingface_hub import HfApi
23
  HF_TOKEN = os.environ.get("HF_TOKEN")
24
  # will use api to restart space on a unrecoverable error
25
  api = HfApi(token=HF_TOKEN)