You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run this application, but getting the error
TypeError: 'type' object is not subscriptable
File "python3.8/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "chatbot/aws_well_arch_chatbot/aws_well_arch_st.py", line 13, in
import utils
File "/chatbot/aws_well_arch_chatbot/utils.py", line 18, in
def get_embedding(text: str, model: str = EMBEDDING_MODEL) -> list[float]:
TypeError: 'type' object is not subscriptable
Can you please help to resolve this issue.
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to run this application, but getting the error
TypeError: 'type' object is not subscriptable
File "python3.8/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "chatbot/aws_well_arch_chatbot/aws_well_arch_st.py", line 13, in
import utils
File "/chatbot/aws_well_arch_chatbot/utils.py", line 18, in
def get_embedding(text: str, model: str = EMBEDDING_MODEL) -> list[float]:
TypeError: 'type' object is not subscriptable
Can you please help to resolve this issue.
Thanks
The text was updated successfully, but these errors were encountered: