Spaces:
Sleeping
Sleeping
j-tobias
commited on
Commit
Β·
a8a920e
1
Parent(s):
90301be
added solution reveal
Browse files
app.py
CHANGED
@@ -65,7 +65,9 @@ def chat(audio, chat:list, asr_model:str):
|
|
65 |
raise ValueError(f"No Model found with the given choice: {asr_model}")
|
66 |
|
67 |
if RANDOM_WORD in transcription:
|
68 |
-
status = "# YOU WON !! ππ
|
|
|
|
|
69 |
|
70 |
chat.append({'role':'user','content':transcription})
|
71 |
response = client.chat_completion(
|
@@ -75,7 +77,9 @@ def chat(audio, chat:list, asr_model:str):
|
|
75 |
).choices[0].message.content
|
76 |
chat.append({'role':'assistant','content':response})
|
77 |
if RANDOM_WORD in response:
|
78 |
-
status = "# YOU LOST !! ββ
|
|
|
|
|
79 |
return chat, status
|
80 |
|
81 |
def transcribe_whisper_large_v2(audio):
|
|
|
65 |
raise ValueError(f"No Model found with the given choice: {asr_model}")
|
66 |
|
67 |
if RANDOM_WORD in transcription:
|
68 |
+
status = f"""# YOU WON !! ππ
|
69 |
+
The Word was: {RANDOM_WORD}
|
70 |
+
"""
|
71 |
|
72 |
chat.append({'role':'user','content':transcription})
|
73 |
response = client.chat_completion(
|
|
|
77 |
).choices[0].message.content
|
78 |
chat.append({'role':'assistant','content':response})
|
79 |
if RANDOM_WORD in response:
|
80 |
+
status = f"""# YOU LOST !! ββ
|
81 |
+
The Word was: {RANDOM_WORD}
|
82 |
+
"""
|
83 |
return chat, status
|
84 |
|
85 |
def transcribe_whisper_large_v2(audio):
|