Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ with col1:
|
|
14 |
|
15 |
with col2:
|
16 |
temperature = st.number_input('Temperature: ', min_value=0.0, max_value=1.0, value=0.5, format='%f')
|
|
|
17 |
|
18 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
19 |
|
@@ -24,7 +25,7 @@ model = T5ForConditionalGeneration.from_pretrained(
|
|
24 |
)
|
25 |
|
26 |
instruction = st.text_area('Write an instruction:')
|
27 |
-
|
28 |
|
29 |
prompts = [
|
30 |
f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
|
|
14 |
|
15 |
with col2:
|
16 |
temperature = st.number_input('Temperature: ', min_value=0.0, max_value=1.0, value=0.5, format='%f')
|
17 |
+
max_tokens = st.number_input('Max output length: ', min_value=1, max_value=64, format='%i')
|
18 |
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
20 |
|
|
|
25 |
)
|
26 |
|
27 |
instruction = st.text_area('Write an instruction:')
|
28 |
+
|
29 |
|
30 |
prompts = [
|
31 |
f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
|