vumichien commited on
Commit
8306953
Β·
1 Parent(s): 622b557

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,6 +39,8 @@ def voice_detect(audio, recongnize_text=""):
39
  threshold = 0.8
40
  detect_greeting = 0
41
  text = speech_to_text(audio)
 
 
42
  recongnize_text = recongnize_text + " " + text
43
  query_embedding = text_model.encode(text, convert_to_tensor=True)
44
  for greeting in greeting_list:
 
39
  threshold = 0.8
40
  detect_greeting = 0
41
  text = speech_to_text(audio)
42
+ ifγ€€text = "γ”θ¦–θ΄γ‚γ‚ŠγŒγ¨γ†γ”γ–γ„γΎγ—γŸ":
43
+ text = ""
44
  recongnize_text = recongnize_text + " " + text
45
  query_embedding = text_model.encode(text, convert_to_tensor=True)
46
  for greeting in greeting_list: