CineAI commited on
Commit
0560145
1 Parent(s): 7722c06

41727469634d6f6e6b65793a32302e30332e32343a31383238

Browse files
Files changed (1) hide show
  1. audio2text/a2t.py +1 -8
audio2text/a2t.py CHANGED
@@ -1,13 +1,6 @@
1
  import librosa
2
  import torch
3
- from transformers import WhisperProcessor, WhisperForConditionalGeneration
4
-
5
- # ArticMonkey:19.03.24:1700 example of version name in plaintext will be convert into hex using this site -> https://magictool.ai/tool/text-to-hex-converter/
6
- # Here ArticMonkey is name of version and rest of all is data and time
7
-
8
- checkpoint = "openai/whisper-base"
9
- processor = WhisperProcessor.from_pretrained(checkpoint)
10
- model = WhisperForConditionalGeneration.from_pretrained(checkpoint)
11
 
12
  LIMIT = 90 # limit 90 seconds
13
 
 
1
  import librosa
2
  import torch
3
+ from .init import processor, model
 
 
 
 
 
 
 
4
 
5
  LIMIT = 90 # limit 90 seconds
6