Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'type' object is not subscriptable #2

Open
santoshturamari opened this issue Aug 30, 2023 · 1 comment
Open

TypeError: 'type' object is not subscriptable #2

santoshturamari opened this issue Aug 30, 2023 · 1 comment

Comments

@santoshturamari
Copy link

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

@banjtheman
Copy link
Owner

Try updating to 3.9+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants