awacke1 commited on
Commit
6f6d449
1 Parent(s): 6db0818

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -198,7 +198,8 @@ def process_text(user_name, text_input, selected_model, temp_values):
198
  stream = hf_client.chat.completions.create(
199
  model=model_links[selected_model],
200
  messages=[
201
- {"role": m["role"], "content": m["content"]}
 
202
  for m in st.session_state.messages
203
  ],
204
  temperature=temp_values,
 
198
  stream = hf_client.chat.completions.create(
199
  model=model_links[selected_model],
200
  messages=[
201
+ #{"role": m["role"], "content": m["content"]}
202
+ {"role": "user", "content": m["content"]}
203
  for m in st.session_state.messages
204
  ],
205
  temperature=temp_values,