HareemFatima commited on
Commit
98e7bd0
1 Parent(s): eda6be5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import streamlit as st
2
  from transformers import pipeline, AutoTokenizer, AutoModelForTextToWaveform
3
 
4
  # Load the audio classification model
5
- audio_classification_model = pipeline("audio-classification", model="HareemFatima/distilhubert-finetuned-stutterdetection")
 
6
 
7
  # Load the TTS tokenizer and model
8
  tts_tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-eng")
 
2
  from transformers import pipeline, AutoTokenizer, AutoModelForTextToWaveform
3
 
4
  # Load the audio classification model
5
+ processor = AutoProcessor.from_pretrained("HareemFatima/distilhubert-finetuned-stutterdetection")
6
+ model = AutoModelForAudioClassification.from_pretrained("HareemFatima/distilhubert-finetuned-stutterdetection")
7
 
8
  # Load the TTS tokenizer and model
9
  tts_tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-eng")