My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Pradip Nichite

24 likes

·

5.9K reads

2 comments

M Delascasas
M Delascasas
May 27, 2023

Hi Pradip. Thanks for a very clear explanation about this matter. I've followed your instructions but when I run the app it gives me this message:

ImportError: cannot import name 'get_initial_message' from 'utils' (C:\Users\Mauricio\Desktop\Python Projects\ChatBot with Streamlit\utils.py) Traceback: File "c:\Users\Mauricio\Desktop\Python Projects\ChatBot with Streamlit.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "C:\Users\Mauricio\Desktop\Python Projects\ChatBot with Streamlit\chatbot.py", line 4, in <module> from utils import get_initial_message, get_chatgpt_response, update_chat

Could you tell me why?

Thanks

·
·1 reply
M Delascasas
M Delascasas
May 28, 2023

Hi. I already solved the issue. Thanks again for a nice explanation about the chatbot development with streamlit. all the best

·