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