Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
132 |
# streaming response
|
133 |
result_textarea = st.empty()
|
134 |
results=[]
|
135 |
-
for responses in openai.Completion.create(model=model,
|
136 |
# for responses in openai.ChatCompletion.create(model=model, messages=conversation, stream=True):
|
137 |
#results.append(str(responses.choices[0]))
|
138 |
results.append(responses.choices[0].text)
|
|
|
132 |
# streaming response
|
133 |
result_textarea = st.empty()
|
134 |
results=[]
|
135 |
+
for responses in openai.Completion.create(model=model, prompt=conversation, stream=True):
|
136 |
# for responses in openai.ChatCompletion.create(model=model, messages=conversation, stream=True):
|
137 |
#results.append(str(responses.choices[0]))
|
138 |
results.append(responses.choices[0].text)
|