Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
| 12 |
st.title('🦜Seon\'s Legal QA For Dummies 🔗 ')
|
| 13 |
|
| 14 |
|
| 15 |
-
model = AutoModelForCausalLM.from_pretrained("PyaeSoneK/
|
| 16 |
device_map='auto',
|
| 17 |
torch_dtype=torch.float32,
|
| 18 |
use_auth_token= st.secrets['hf_access_token'],
|
|
@@ -22,7 +22,7 @@ model = AutoModelForCausalLM.from_pretrained("PyaeSoneK/finetuned_pythia-2.8b-de
|
|
| 22 |
|
| 23 |
# load_in_4bit=True
|
| 24 |
|
| 25 |
-
tokenizer = AutoTokenizer.from_pretrained("PyaeSoneK/
|
| 26 |
use_auth_token=st.secrets['hf_access_token'],)
|
| 27 |
|
| 28 |
# Use a pipeline for later
|
|
|
|
| 12 |
st.title('🦜Seon\'s Legal QA For Dummies 🔗 ')
|
| 13 |
|
| 14 |
|
| 15 |
+
model = AutoModelForCausalLM.from_pretrained("PyaeSoneK/Fine_Tuned_Pythia_smallest_140_legal",
|
| 16 |
device_map='auto',
|
| 17 |
torch_dtype=torch.float32,
|
| 18 |
use_auth_token= st.secrets['hf_access_token'],
|
|
|
|
| 22 |
|
| 23 |
# load_in_4bit=True
|
| 24 |
|
| 25 |
+
tokenizer = AutoTokenizer.from_pretrained("PyaeSoneK/Fine_Tuned_Pythia_smallest_140_legal",
|
| 26 |
use_auth_token=st.secrets['hf_access_token'],)
|
| 27 |
|
| 28 |
# Use a pipeline for later
|