Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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_token
|
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":
|