Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,6 @@ def generate_step_card(instruction, year, subject):
|
|
| 67 |
# Load model on first call (inside GPU context)
|
| 68 |
if model is None:
|
| 69 |
from unsloth import FastModel
|
| 70 |
-
global model, tokenizer
|
| 71 |
model, tokenizer = FastModel.from_pretrained(
|
| 72 |
model_name=MODEL_ID,
|
| 73 |
max_seq_length=512,
|
|
|
|
| 67 |
# Load model on first call (inside GPU context)
|
| 68 |
if model is None:
|
| 69 |
from unsloth import FastModel
|
|
|
|
| 70 |
model, tokenizer = FastModel.from_pretrained(
|
| 71 |
model_name=MODEL_ID,
|
| 72 |
max_seq_length=512,
|