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