Project Info
This project did not submit a demo video on Devpost.
Inspiration
The inspiration for our project was to create a Jarvis like chatbot experience. We decided to name the project AIFred as a nod to batman's assistant Alfred.
What it does
AIFred was envisioned to be text free with users interacting with AIFred using their voice only. However we ran into several hiccups with the api's that prevented us from getting to a complete point. At this point AIFred has standard chatbot features and UI, and the text to speech exists as a stand alone aspect of our project and is not yet implemented into the AIFred experience.
How we built it
We developed a basic html page that we could easily host on github pages and were beginning to make a react app, however, we quickly realized if we wanted to start utilizing the api's we would most likely be writing in python. We realized if we were already going to be writing in python we would be better off using reflex for seamless integration between the api code and the front end.
Challenges we ran into
Our biggest challenges was working with the api's and dealing with the slow hackathon wifi as we had to download the models and their necessary libraries. Every download taking around 10 minutes definitely slowed down our progress especially with our smaller team. Furthermore, the scipy library that seemed to be the go-to for writing .wav files would not work on our devices. We tried several different models and tested almost every edge case, changing the sample rate, reformatting the input to the other accepted formats, changing the size of the input, and trying out the other solutions provided on Hugging Face. Lucky, we ended up finding a solution that worked but a lot of time was burnt on this issue.
Accomplishments we're proud of
We are pretty proud of the work that we did. We had never worked with API's before and it was one of our goals to work with them, so we are happy with what we learned and it was fun to figure out how to hide our API keys and get the models working in our code.
What we learned
We learned how to set up projects on GitHub pages, build websites in Reflex, and how to work with and integrate AI into our project with the help of API's.
What's next
Next up we want to finish implementing the text to speech as that was almost finished but not complete and then get the speech recognition and transcription up and running.
Analysis
View
Metric
- 29
- 13
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- HTMLIn code
- JavaScriptIn code
- Next.jsIn code
- OpenAIIn code
- PythonIn code
- ReactIn code
- Tailwind CSSIn code
- TypeScriptIn code
9 of 9 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
38 KB
Source files
29
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
SilveerDusk/calhacks
54 files · 9.0 MB · @ 799545d
Structure
Interface
14 files · 26%Screens, components and styles rendered to the user.
Application logic
7 files · 13%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- Python50%
- TypeScript21%
- HTML11%
- CSS8%
- Markdown6%
- JavaScript3%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
frontend/calhacksproject/package.json
npm · 12- next
- react
- react-dom
- +9 more
reflex/reflex-chat-main/webui/requirements.txt
pypi · 2- openai
- reflex
html/package.json
npm · 11 development-only dependencies.
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.