I am trying to deploy my app that has a chatbot and a pdf bot. They are created in 2 different files (application.py for chat bot, pdfbot.py for pdf bot) and I have combined them in one file (main.py) . The deployment was a success but it seems that it hasn’t deployed the chat and pdf bot files, I am not sure why since the are called in the main.py file.
This is the repository that holds the code:
If anyone could help, I would be so thankful!
Have a good day.
This may be an incompatibility issue of the
streamlit-option-menu component, perhaps you can try exploring the use of different streamlit versions together with this component. Filing a GitHub issue is another option.
Another route could be to implement this without the
streamlit-option-menu and place the 2 bots as a page in a multi-page app, then you can use
st.selectbox to allow users to select the bot to use. Afterwards you could style the CSS to change the colors of the buttons.
Hope this helps!
I see, thank you! Will try the second route, hope it works.
You’re welcome, hope it works