patpizio commited on
Commit
48ce219
·
1 Parent(s): ea2d5e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -4,7 +4,13 @@ from transformers import AutoTokenizer, T5Tokenizer, T5ForConditionalGeneration,
4
 
5
  st.title('How does the LLM choose its words?')
6
 
7
- model_checkpoint = "google/flan-t5-xl"
 
 
 
 
 
 
8
 
9
  tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
10
 
 
4
 
5
  st.title('How does the LLM choose its words?')
6
 
7
+ model_checkpoint = st.selectbox(
8
+ "Model:",
9
+ ("google/flan-t5-base", "google/flan-t5-xl"),
10
+ label_visibility=st.session_state.visibility,
11
+ disabled=st.session_state.disabled,
12
+ )
13
+ temperature = st.number_input('Temperature: ', min_value=0, max_value=1, format='%f')
14
 
15
  tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
16