Spaces:
Sleeping
Sleeping
load model outside
Browse files
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:
|