Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -379,7 +379,7 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
| 379 |
report = []
|
| 380 |
res_box = st.empty()
|
| 381 |
collected_chunks = []
|
| 382 |
-
collected_messages =
|
| 383 |
st.write('Running prompt with ' + model)
|
| 384 |
for chunk in openai.ChatCompletion.create(model='gpt-3.5-turbo', messages=conversation, temperature=0.5, stream=True):
|
| 385 |
collected_chunks.append(chunk)
|
|
|
|
| 379 |
report = []
|
| 380 |
res_box = st.empty()
|
| 381 |
collected_chunks = []
|
| 382 |
+
collected_messages = []
|
| 383 |
st.write('Running prompt with ' + model)
|
| 384 |
for chunk in openai.ChatCompletion.create(model='gpt-3.5-turbo', messages=conversation, temperature=0.5, stream=True):
|
| 385 |
collected_chunks.append(chunk)
|