OuroborosM commited on
Commit
4cc267c
·
1 Parent(s): c3b3022

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -145,8 +145,8 @@ async def TestCodeInterpret(CustomMessage:str):
145
  session.stop()
146
 
147
 
148
- # ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
149
- # sample = ds[0]["audio"]
150
 
151
  global Audio_output
152
  Audio_output = []
@@ -167,7 +167,7 @@ def speech_to_text_loc(audio):
167
 
168
  return text
169
 
170
- # print("voice to text loc: ", speech_to_text_loc(sample))
171
 
172
  def text_to_speech_loc(text):
173
  device = "cpu"
@@ -215,7 +215,7 @@ def text_to_speech_loc2(Text_input):
215
  return audio
216
 
217
 
218
- # print("text to speech2: ", text_to_speech_loc2("Good morning."))
219
 
220
  class GPTRemote(LLM):
221
  n: int
 
145
  session.stop()
146
 
147
 
148
+ ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
149
+ sample = ds[0]["audio"]
150
 
151
  global Audio_output
152
  Audio_output = []
 
167
 
168
  return text
169
 
170
+ print("voice to text loc: ", speech_to_text_loc(sample))
171
 
172
  def text_to_speech_loc(text):
173
  device = "cpu"
 
215
  return audio
216
 
217
 
218
+ print("text to speech2: ", text_to_speech_loc2("Good morning."))
219
 
220
  class GPTRemote(LLM):
221
  n: int