pradeei commited on
Commit
feb1536
·
verified ·
1 Parent(s): f9a9244

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ endpoint = ""
10
  hardware_option = ""
11
  api_key = ""
12
  base_url = ""
13
- modelname = ""
14
 
15
  with st.sidebar:
16
  st.button("Start New Chat", on_click=clear_chat)
@@ -37,7 +37,7 @@ if prompt := st.chat_input("What is up?"):
37
 
38
  with st.chat_message("assistant"):
39
  stream = client.chat.completions.create(
40
- model=modelname,
41
  messages=[
42
  {"role": m["role"], "content": m["content"]}
43
  for m in st.session_state.messages
 
10
  hardware_option = ""
11
  api_key = ""
12
  base_url = ""
13
+ model_name = ""
14
 
15
  with st.sidebar:
16
  st.button("Start New Chat", on_click=clear_chat)
 
37
 
38
  with st.chat_message("assistant"):
39
  stream = client.chat.completions.create(
40
+ model=model_name,
41
  messages=[
42
  {"role": m["role"], "content": m["content"]}
43
  for m in st.session_state.messages