kevalfst commited on
Commit
716f516
·
verified ·
1 Parent(s): ab94a4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
3
 
4
  # Load the model
5
- model_id = "mistralai/Mistral-7B-Instruct-v0.2" # or another instruct-tuned model
6
  tokenizer = AutoTokenizer.from_pretrained(model_id)
7
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype="auto")
8
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
 
2
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
3
 
4
  # Load the model
5
+ model_id = "HuggingFaceH4/zephyr-7b-alpha" # or another instruct-tuned model
6
  tokenizer = AutoTokenizer.from_pretrained(model_id)
7
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype="auto")
8
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)