qbwmwsap commited on
Commit
fc6d0d8
·
verified ·
1 Parent(s): ed81850

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,16 +1,15 @@
1
  import streamlit as st
2
- # from transformers import AutoTokenizer, AutoModelForCausalLM
3
- from transformers import LlamaTokenizer, LlamaForCausalLM
4
 
5
  # Load your model here
6
  # tokenizer = AutoTokenizer.from_pretrained("qbwmwsap/amber-model-mine")
7
  # model = AutoModelForCausalLM.from_pretrained("qbwmwsap/amber-model-mine")
8
 
9
  # Load original amber model
10
- tokenizer = LlamaTokenizer.from_pretrained("LLM360/Amber", revision="ckpt_356")
11
- model = LlamaForCausalLM.from_pretrained("LLM360/Amber", revision="ckpt_356")
12
 
13
- st.title('Amber-Model-Mine')
14
 
15
  text = st.text_input('Enter some text')
16
 
 
1
  import streamlit as st
2
+ from transformers import AutoTokenizer, AutoModelForCausalLM
 
3
 
4
  # Load your model here
5
  # tokenizer = AutoTokenizer.from_pretrained("qbwmwsap/amber-model-mine")
6
  # model = AutoModelForCausalLM.from_pretrained("qbwmwsap/amber-model-mine")
7
 
8
  # Load original amber model
9
+ tokenizer = AutoTokenizer.from_pretrained("LLM360/Amber")
10
+ model = AutoModelForCausalLM.from_pretrained("LLM360/Amber")
11
 
12
+ st.title('Amber-Model-Remastered')
13
 
14
  text = st.text_input('Enter some text')
15