Could you provide additional context to what you’re aiming to achieve? Thanks!
I developed chat app using streamlit, for some query the LLM generates table. So, I want to extract that table in a PDF in the same format as it is shown in the app. So, can you please tell me how can I do that in streamlit.
Typically, when creating a chatbot, you would store LLM generated responses in the session state variable namely
You can tap into the contents stored in this session state variable and export its content as a Markdown or HTML file. To achieve this you can look into using a package such as
Markdown (Markdown · PyPI).
See this tutorial for some ideas on using the Markdown library:
Hope this helps!
I will check it. Thanks for helping