Skip to content

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.

License

Notifications You must be signed in to change notification settings

kevyuan/ai-pun-generator

Repository files navigation

AI Pun Generator

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.

Features

  • Unlimited Puns: Generate puns using AI by hitting the 'refresh' button.

Usage

To use the application, follow these steps:

  1. Install Ollama and run Llama3
ollama run llama3
  1. Clone the repository:
git clone https://github.com/kevyuan/ai-pun-generator.git
  1. Install dependencies:
cd ai-pun-generator
npm install
  1. Start the development server
npm start
  1. 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' ...

Screenshots

Screenshot

Personal Notes

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.

License

This project is licensed under the MIT License - see the License file for details.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published