Update app.py
Browse files
app.py
CHANGED
@@ -245,10 +245,10 @@ async def text_mode():
|
|
245 |
messages=[
|
246 |
{"role": m["role"], "content": m["content"]}
|
247 |
for m in st.session_state.messages
|
248 |
-
],
|
249 |
stream=True,
|
250 |
# messages=[{'role': 'system', 'content': 'you are ChatGPT'}, {
|
251 |
-
# 'role': 'user', 'content': prompt}],
|
252 |
stream=True,
|
253 |
):
|
254 |
full_response += response.choices[0].delta.get(
|
|
|
245 |
messages=[
|
246 |
{"role": m["role"], "content": m["content"]}
|
247 |
for m in st.session_state.messages
|
248 |
+
],
|
249 |
stream=True,
|
250 |
# messages=[{'role': 'system', 'content': 'you are ChatGPT'}, {
|
251 |
+
# 'role': 'user', 'content': prompt}],
|
252 |
stream=True,
|
253 |
):
|
254 |
full_response += response.choices[0].delta.get(
|