Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|