Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ if torch.cuda.is_available():
|
|
21 |
#model_id = "BenBranyon/sumbot7b"
|
22 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
23 |
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True, model_max_length=MAX_INPUT_TOKEN_LENGTH, padding="longest", language="en")
|
24 |
-
tokenizer.use_default_system_prompt = False
|
25 |
|
26 |
#Inference API Code
|
27 |
def respond(
|
|
|
21 |
#model_id = "BenBranyon/sumbot7b"
|
22 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
23 |
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True, model_max_length=MAX_INPUT_TOKEN_LENGTH, padding="longest", language="en")
|
24 |
+
#tokenizer.use_default_system_prompt = False
|
25 |
|
26 |
#Inference API Code
|
27 |
def respond(
|