geored commited on
Commit
6091007
1 Parent(s): 7f2fa5f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -2,8 +2,10 @@ import gradio as gr
2
  from transformers import pipeline
3
  from transformers import AutoModelForCausalLM, AutoTokenizer
4
 
5
- # Load the Mistral-7B-v0.1 model and tokenizer
6
- model_name = "mistralai/Mistral-7B-v0.1"
 
 
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
 
2
  from transformers import pipeline
3
  from transformers import AutoModelForCausalLM, AutoTokenizer
4
 
5
+ # Load the model and tokenizer
6
+ # model_name = "AdaptLLM/law-LLM"
7
+ model_name = "google/gemma-2b"
8
+ # model_name = "mistralai/Mistral-7B-v0.1"
9
  tokenizer = AutoTokenizer.from_pretrained(model_name)
10
  model = AutoModelForCausalLM.from_pretrained(model_name)
11