cnmoro commited on
Commit
0a1e0f8
·
verified ·
1 Parent(s): dcd6ef7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,10 +12,10 @@ import gradio as gr
12
  torch.set_num_threads(2)
13
 
14
  model = EmbeddingModel(use_quantized_onnx_model=True)
15
- tokenizer = AutoTokenizer.from_pretrained("lmsys/vicuna-7b-v1.5")
16
- llm = AutoModelForCausalLM.from_pretrained("lmsys/vicuna-7b-v1.5")
17
 
18
- prompt_template = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: $PROMPT ASSISTANT: "
19
 
20
  def fetch_links(query, max_results=5):
21
  with DDGS() as ddgs:
 
12
  torch.set_num_threads(2)
13
 
14
  model = EmbeddingModel(use_quantized_onnx_model=True)
15
+ tokenizer = AutoTokenizer.from_pretrained("GeneZC/MiniChat-3B", use_fast=False)
16
+ llm = AutoModelForCausalLM.from_pretrained("GeneZC/MiniChat-3B")
17
 
18
+ prompt_template = "<s> [|User|] $PROMPT </s>[|Assistant|]"
19
 
20
  def fetch_links(query, max_results=5):
21
  with DDGS() as ddgs: