Yusin commited on
Commit
31a365d
·
1 Parent(s): b9bd7a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ config_json = config.config_json
22
  net_g_ms, hps = infer.load_model(config_json, pth_path)
23
 
24
  # ChatGPT
25
- def chat_hf(audio, custom_tokenlanguage):
26
  try:
27
  whisper_text = translate(audio)
28
  if whisper_text == "ERROR: You have to either use the microphone or upload an audio file":
 
22
  net_g_ms, hps = infer.load_model(config_json, pth_path)
23
 
24
  # ChatGPT
25
+ def chat_hf(audio, custom_token, language):
26
  try:
27
  whisper_text = translate(audio)
28
  if whisper_text == "ERROR: You have to either use the microphone or upload an audio file":