mskov commited on
Commit
60020af
·
1 Parent(s): 23a772a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- if audio_file != None:
56
- transcribed_text = pipe(audio_file)["text"]
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]