Hi! I am currently trying to execute a code that the openAI GPT LLM is writing for me, then executing this code and lastly using a variable in that script named answer as the chat response, unfortunately it is not working using exec() as i did in a regular python script, and i am having difficulty finding an alternative for it, any way in making this functionality another way in the streamlit app?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Get agents to execute code in streamlit | 3 | 1412 | April 12, 2024 | |
| About theresponse = st.write_stream(stream) | 0 | 390 | May 7, 2024 | |
| Streaming response line chatgpt | 1 | 1602 | June 12, 2023 | |
| Streamlit detected Code Language automatically. How? | 6 | 909 | September 17, 2023 | |
| Call a function from main.py in stream lit.py | 5 | 245 | September 2, 2024 |