aquibmoin commited on
Commit
f727ca3
1 Parent(s): 8c7f129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,13 +20,15 @@ with st.sidebar:
20
  os.environ['REPLICATE_API_TOKEN'] = replicate_api
21
 
22
  st.subheader('Models and parameters')
23
- selected_model = st.sidebar.selectbox('Choose a Meta Llama model', ['Llama2-7B', 'Llama2-13B', 'Llama3-8B-Instruct'], key='selected_model')
24
  if selected_model == 'Llama2-7B':
25
  llm = 'meta/llama-2-7b-chat'
26
  elif selected_model == 'Llama2-13B':
27
  llm = 'meta/llama-2-13b-chat'
28
  elif selected_model == 'Llama3-8B-Instruct':
29
  llm = 'meta/meta-llama-3-8b-instruct'
 
 
30
  temperature = st.sidebar.slider('temperature', min_value=0.01, max_value=1.0, value=0.1, step=0.01)
31
  top_p = st.sidebar.slider('top_p', min_value=0.01, max_value=1.0, value=0.9, step=0.01)
32
  max_length = st.sidebar.slider('max_length', min_value=32, max_value=1000, value=400, step=8)
 
20
  os.environ['REPLICATE_API_TOKEN'] = replicate_api
21
 
22
  st.subheader('Models and parameters')
23
+ selected_model = st.sidebar.selectbox('Choose a Meta Llama model', ['Llama2-7B', 'Llama2-13B', 'Llama3-8B-Instruct', 'Llama3-70B-instruct'], key='selected_model')
24
  if selected_model == 'Llama2-7B':
25
  llm = 'meta/llama-2-7b-chat'
26
  elif selected_model == 'Llama2-13B':
27
  llm = 'meta/llama-2-13b-chat'
28
  elif selected_model == 'Llama3-8B-Instruct':
29
  llm = 'meta/meta-llama-3-8b-instruct'
30
+ elif selected_model == 'Llama3-70B-Instruct':
31
+ llm = 'meta/meta-llama-3-70b-instruct'
32
  temperature = st.sidebar.slider('temperature', min_value=0.01, max_value=1.0, value=0.1, step=0.01)
33
  top_p = st.sidebar.slider('top_p', min_value=0.01, max_value=1.0, value=0.9, step=0.01)
34
  max_length = st.sidebar.slider('max_length', min_value=32, max_value=1000, value=400, step=8)