johnhelf commited on
Commit
c9bc610
·
1 Parent(s): 4f3a03e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -23,7 +23,7 @@ async def get_images(prompt: str, files: Optional[list] = None,openai_key=None):
23
  st.write(prompt)
24
  with st.spinner():
25
  async with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key=openai_key) as session:
26
- response = await session.generate_response(prompt, files=files)
27
 
28
  with st.chat_message("assistant"):
29
  st.write(response.content)
 
23
  st.write(prompt)
24
  with st.spinner():
25
  async with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key=openai_key) as session:
26
+ response = await session.agenerate_response(prompt, files=files)
27
 
28
  with st.chat_message("assistant"):
29
  st.write(response.content)