Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,11 +52,8 @@ def slider_logic(slider):
|
|
52 |
# Create a Gradio interface with audio file and text inputs
|
53 |
def classify_toxicity(audio_file, selected_sounds, slider):
|
54 |
# Transcribe the audio file using Whisper ASR
|
55 |
-
|
56 |
-
|
57 |
-
else:
|
58 |
-
transcribed_text = text_input
|
59 |
-
|
60 |
threshold = slider_logic(slider)
|
61 |
model = whisper.load_model("large")
|
62 |
# model = model_cache[model_name]
|
|
|
52 |
# Create a Gradio interface with audio file and text inputs
|
53 |
def classify_toxicity(audio_file, selected_sounds, slider):
|
54 |
# Transcribe the audio file using Whisper ASR
|
55 |
+
# transcribed_text = pipe(audio_file)["text"]
|
56 |
+
|
|
|
|
|
|
|
57 |
threshold = slider_logic(slider)
|
58 |
model = whisper.load_model("large")
|
59 |
# model = model_cache[model_name]
|