Update README.md
Browse files
README.md
CHANGED
@@ -16,7 +16,8 @@ from transformers import pipeline
|
|
16 |
model_name = "amitayusht/ProofWala-Multilingual"
|
17 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
18 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
19 |
-
pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
|
|
|
20 |
# Example usage
|
21 |
state = """
|
22 |
Goals to prove:
|
|
|
16 |
model_name = "amitayusht/ProofWala-Multilingual"
|
17 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
18 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
19 |
+
pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer, device=-1) # device=0 for GPU, -1 for CPU
|
20 |
+
|
21 |
# Example usage
|
22 |
state = """
|
23 |
Goals to prove:
|