AI Pun Generator is an application developed using React Native and Ollama. It serves as a basic demonstration of using text generation to create an unscripted app experience. Users can interact with the application across iOS, Android, and Web.
- Unlimited Puns: Generate puns using AI by hitting the 'refresh' button.
To use the application, follow these steps:
- Install Ollama and run Llama3
ollama run llama3
- Clone the repository:
git clone https://github.com/kevyuan/ai-pun-generator.git
- Install dependencies:
cd ai-pun-generator
npm install
- Start the development server
npm start
- Adjust
Database.js
to match your Llama3 server IP address and port number.
const response = await fetch('<YOUR_IP_ADDRESS_AND_PORT_HERE>/api/generate' ...
I did this as a project to learn about React Native, Prompt Engineering, and interacting with LLMs within applications. It is full of comments, commented out codes, and other unnecessary things. Feedback is appreciated.
If you'd like to contribute to the project, feel free to fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the License file for details.