Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|