Charts visualization on Streamlit web app #221
Replies: 3 comments 15 replies
-
Hi @marcello-calabrese! Might be necessary to instruct the model to use P.s. if you have any alternative approach in mind, feel free to share! |
Beta Was this translation helpful? Give feedback.
-
Ciao @marcello-calabrese (yes, I'm from Italy 😊)! You should actually instruct the model to use Let me know if it works! |
Beta Was this translation helpful? Give feedback.
-
Hi, see the code below thanks. the code below is not with the version updated to 0.5.5, will try soon, thanks instantiate LLM with PandasAIllm = OpenAI(api_token='sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', engine='gpt-3.5-turbo') pandas_ai = PandasAI(llm, middlewares=[StreamlitMiddleware()], verbose=False) if st.button('Generate Response'): |
Beta Was this translation helpful? Give feedback.
-
Hi, is there a better way to visualize charts through pandasai on Streamlit? I will explain, so to show the charts on streamlit when I ask to plot, I used matplotlib.use('TkAgg'), it works that basically show the chart in a new window but the request keeps running.
It might be a better way to render matplotlib through pandasai on a streamlit. Hope so.
Thanks a lot,
Marcello
Beta Was this translation helpful? Give feedback.
All reactions