gorkemgoknar
commited on
Commit
•
60f92e9
1
Parent(s):
f89c55d
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,8 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
|
28 |
if language_predicted == "zh":
|
29 |
#we use zh-cn
|
30 |
language_predicted = "zh-cn"
|
31 |
-
|
|
|
32 |
|
33 |
if language_predicted != language:
|
34 |
#Please duplicate and remove this check if you really want this
|
|
|
28 |
if language_predicted == "zh":
|
29 |
#we use zh-cn
|
30 |
language_predicted = "zh-cn"
|
31 |
+
#This is for identifying problems only.
|
32 |
+
print(f"Detected language:{language_predicted}, Chosen language:{language}, text:{prompt}")
|
33 |
|
34 |
if language_predicted != language:
|
35 |
#Please duplicate and remove this check if you really want this
|