Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from ctransformers import AutoModelForCausalLM, AutoTokenizer
|
|
3 |
|
4 |
# Load pre-trained model and tokenizer
|
5 |
model = AutoModelForCausalLM.from_pretrained("TheBloke/dolphin-2.2.1-mistral-7B-GGUF", model_file="dolphin-2.2.1-mistral-7b.Q4_K_M.gguf", model_type="mistral", gpu_layers=50)
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("TheBloke/dolphin-2.2.1-mistral-7B-GGUF")
|
7 |
|
8 |
def generate_mcqs(paragraph):
|
9 |
sentences = paragraph.split('. ')
|
|
|
3 |
|
4 |
# Load pre-trained model and tokenizer
|
5 |
model = AutoModelForCausalLM.from_pretrained("TheBloke/dolphin-2.2.1-mistral-7B-GGUF", model_file="dolphin-2.2.1-mistral-7b.Q4_K_M.gguf", model_type="mistral", gpu_layers=50)
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("TheBloke/dolphin-2.2.1-mistral-7B-GGUF", model_file="dolphin-2.2.1-mistral-7b.Q4_K_M.gguf", model_type="mistral")
|
7 |
|
8 |
def generate_mcqs(paragraph):
|
9 |
sentences = paragraph.split('. ')
|