Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ if prompt:
|
|
| 31 |
st.chat_message("user").write(prompt)
|
| 32 |
|
| 33 |
# Use a spinner to indicate that the model is generating a response
|
| 34 |
-
with st.spinner('Thinking...'):
|
| 35 |
client = OpenAI(api_key=openai_api_key)
|
| 36 |
response = client.chat.completions.create(model=model_choice, messages=st.session_state.messages)
|
| 37 |
msg = response.choices[0].message.content
|
|
|
|
| 31 |
st.chat_message("user").write(prompt)
|
| 32 |
|
| 33 |
# Use a spinner to indicate that the model is generating a response
|
| 34 |
+
with st.spinner('PromptingAI is Thinking...'):
|
| 35 |
client = OpenAI(api_key=openai_api_key)
|
| 36 |
response = client.chat.completions.create(model=model_choice, messages=st.session_state.messages)
|
| 37 |
msg = response.choices[0].message.content
|