j-tobias commited on
Commit
a8a920e
Β·
1 Parent(s): 90301be

added solution reveal

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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):