Doom008 commited on
Commit
1e0f6a3
1 Parent(s): 3dc9475

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -2,9 +2,8 @@ import streamlit as st
2
  from ctransformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
  # Load pre-trained model and tokenizer
5
- model_name = "distilgpt2"
6
- model = AutoModelForCausalLM.from_pretrained(model_name)
7
- tokenizer = AutoTokenizer.from_pretrained(model_name)
8
 
9
  def generate_mcqs(paragraph):
10
  sentences = paragraph.split('. ')
 
2
  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", model_file="dolphin-2.2.1-mistral-7b.Q4_K_M.gguf")
 
7
 
8
  def generate_mcqs(paragraph):
9
  sentences = paragraph.split('. ')