Inspiration
This project is inspired by Google's IDX. IDX is an AI based code editor offered by Google. It's currently in beta. I always wanted to push the limits the Streamlit , so I thought why not make an IDX clone with Streamlit.
What it does
Codey , as the name hints is an AI powered python code assistant. It can generate the code according to the user query , which can be in natural language. Once the code is generated , the user can also try out the code with a live terminal and a live editor. There is also a live assistant to answer the issues in the code. And the cool thing is everything is built using Streamlit and Snowflake Arctic.
How we built it
The project was built using Streamlit. Most of the components are native , but I also used some open source extensions from the streamlit community. For using Snowflake Arctic , I relied on the replicate service.
Challenges we ran into
The main challenge was integrating the terminal. I used the exec function coupled with some prompt engineering to avoid getting system codes from the LLM. To get the output from exec was also a challenge , but that was fixed using work arounds using the stdout library.
Accomplishments that we're proud of
The main accomplishment is that I could replicate a minor version of the Google IDX platform. That too with a terminal.
What we learned
I learned a lot of things during the course of this project , especially handling states in streamlit , using custom extensions , and also exploring the functionalities of cache in streamlit.
What's next for Codey - AI Coding Assistant
After the hackathon , I plan to also release a V2 , coupled with a terminal powered by web assembly components. I'm also planning to bring a custom web assembly extension to streamlit. Since Arctic is so good at generating artic code , an AI component extension to streamlit would also be cool.
Built With
- python
- replicate
- streamlit
Log in or sign up for Devpost to join the conversation.