mskov commited on
Commit
bbd3701
·
1 Parent(s): f10b2fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ available_models = {
13
  # Create a Gradio interface with audio file and text inputs
14
  def classify_toxicity(audio_file, text_file, selected_model):
15
  # Transcribe the audio file using Whisper ASR
16
- if audio_file != null:
17
  whisper_module = evaluate.load("whisper")
18
  transcription_results = whisper_module.compute(uploaded=audio_file)
19
 
 
13
  # Create a Gradio interface with audio file and text inputs
14
  def classify_toxicity(audio_file, text_file, selected_model):
15
  # Transcribe the audio file using Whisper ASR
16
+ if audio_file != None:
17
  whisper_module = evaluate.load("whisper")
18
  transcription_results = whisper_module.compute(uploaded=audio_file)
19