mskov commited on
Commit
47fa28f
Β·
1 Parent(s): c3e8c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -14,7 +14,8 @@ disable_caching()
14
 
15
  huggingface_token = os.environ["huggingface_token"]
16
  pipe = pipeline(model="mskov/whisper-small-miso")
17
-
 
18
  model = WhisperModel.from_pretrained("mskov/whisper-small-miso", use_auth_token=huggingface_token)
19
  feature_extractor = AutoFeatureExtractor.from_pretrained("mskov/whisper-small-miso", use_auth_token=huggingface_token)
20
  miso_tokenizer = WhisperTokenizer.from_pretrained("mskov/whisper-small-miso", use_auth_token=huggingface_token)
@@ -31,6 +32,7 @@ tokenized_dataset = miso_tokenizer(tempDataset) # Tokenize the dataset
31
  input_ids = features.input_ids
32
  attention_mask = features.attention_mask
33
  '''
 
34
  # Evaluate the model
35
  model.eval()
36
  with torch.no_grad():
 
14
 
15
  huggingface_token = os.environ["huggingface_token"]
16
  pipe = pipeline(model="mskov/whisper-small-miso")
17
+ print(pipe)
18
+ '''
19
  model = WhisperModel.from_pretrained("mskov/whisper-small-miso", use_auth_token=huggingface_token)
20
  feature_extractor = AutoFeatureExtractor.from_pretrained("mskov/whisper-small-miso", use_auth_token=huggingface_token)
21
  miso_tokenizer = WhisperTokenizer.from_pretrained("mskov/whisper-small-miso", use_auth_token=huggingface_token)
 
32
  input_ids = features.input_ids
33
  attention_mask = features.attention_mask
34
  '''
35
+ '''
36
  # Evaluate the model
37
  model.eval()
38
  with torch.no_grad():