patpizio commited on
Commit
31df035
·
1 Parent(s): dc57698

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- max_tokens = st.number_input('Max output length: ', min_value=1, max_value=64, format='%i')
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.