wasertech commited on
Commit
3d8853a
1 Parent(s): c6eb409
Files changed (2) hide show
  1. requirements.txt +0 -10
  2. singularity.py +1 -1
requirements.txt CHANGED
@@ -2,13 +2,3 @@
2
  # TTS
3
  soundfile
4
 
5
- # Wav2Vec2
6
- huggingsound
7
- sentencepiece
8
-
9
- # Bark
10
- git+https://github.com/suno-ai/bark.git
11
- https://download.pytorch.org/whl/nightly/pytorch_triton-2.1.0%2B46672772b4-cp38-cp38-linux_x86_64.whl
12
- # https://download.pytorch.org/whl/nightly/cu117/torch-2.1.0.dev20230413%2Bcu117-cp38-cp38-linux_x86_64.whl
13
- # https://download.pytorch.org/whl/nightly/cu117/torchvision-0.16.0.dev20230413%2Bcu117-cp38-cp38-linux_x86_64.whl
14
- # https://download.pytorch.org/whl/nightly/cu117/torchaudio-2.1.0.dev20230413%2Bcu117-cp38-cp38-linux_x86_64.whl
 
2
  # TTS
3
  soundfile
4
 
 
 
 
 
 
 
 
 
 
 
singularity.py CHANGED
@@ -146,7 +146,7 @@ No problem , it's my pleasure !
146
  with open('tmp.wav', "rb") as f:
147
  _data = f.read()
148
  transcript = self.query_transcription(_data)
149
- return transcript
150
 
151
  def generate_prompt(self, instruction, input=None):
152
  if input:
 
146
  with open('tmp.wav', "rb") as f:
147
  _data = f.read()
148
  transcript = self.query_transcription(_data)
149
+ return transcript['text'] or transcript['error'] or "Something went wrong"
150
 
151
  def generate_prompt(self, instruction, input=None):
152
  if input: