jeffh commited on
Commit
c16cc52
·
1 Parent(s): 1728fdd

update size after model load

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,9 +12,10 @@ def inference(link):
12
  return results['text']
13
 
14
  def change_model(size):
15
- if size == curren_size:
16
  return
17
  loaded_model = whisper.load_model(size)
 
18
 
19
  title="Youtube Whisperer"
20
  description="Speech to text transcription of Youtube videos using OpenAI's Whisper"
 
12
  return results['text']
13
 
14
  def change_model(size):
15
+ if size == current_size:
16
  return
17
  loaded_model = whisper.load_model(size)
18
+ current_size = size
19
 
20
  title="Youtube Whisperer"
21
  description="Speech to text transcription of Youtube videos using OpenAI's Whisper"