eneSadi commited on
Commit
b2be325
·
unverified ·
1 Parent(s): 652db8c

load model outside

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -31,6 +31,8 @@ def load_model():
31
  print("Model is already loaded")
32
  return model, tokenizer
33
 
 
 
34
  @spaces.GPU
35
  def ask(prompt):
36
  if not prompt:
 
31
  print("Model is already loaded")
32
  return model, tokenizer
33
 
34
+ load_model()
35
+
36
  @spaces.GPU
37
  def ask(prompt):
38
  if not prompt: