dar-tau commited on
Commit
38ede89
·
verified ·
1 Parent(s): 1045526

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,8 +7,7 @@ from transformers import AutoTokenizer, AutoModel
7
  model_name = "teknium/OpenHermes-2.5-Mistral-7B"
8
  token = os.environ['hf_token']
9
 
10
- model = AutoModel.from_pretrained(model_name).cuda()
11
- tokenizer = AutoTokenizer.from_pretrained(model_name)
12
 
13
 
14
  system_prompt = '''You are given an input text for a chat interface. Propose auto-completion to the text. You have several roles:
 
7
  model_name = "teknium/OpenHermes-2.5-Mistral-7B"
8
  token = os.environ['hf_token']
9
 
10
+ pipe = pipeline("text-generation", model=model_name, device="cuda")
 
11
 
12
 
13
  system_prompt = '''You are given an input text for a chat interface. Propose auto-completion to the text. You have several roles: