Skip to content

adityathakurxd/gifts-by-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gifts by AI

A Flutter web-app that uses the OpenAI API to recommend gifts based on relation to the person, the occasion, their gender and their interests/hobbies.

This is a simple project to demonstrate how GPT can be used with Flutter.

How to set it up locally?

  • Create a new file inside the lib/constants directory called: open_ai.dart
  • Head to https://openai.com/api/ and create a new account or log in to an existing one.
  • You will need to create a new secret key here.
  • Copy the secret key generated and paste it in the open_ai.dart file as:
String apiKey = "<YOUR SECRET KEY>";

Demo

Screen.Recording.2023-02-10.at.3.00.04.AM.mov

Liked this project?

Thank you for making it this far! If you liked the project, please do give it a star.

Also, you can nominate me for the GitHub Star program here. It only takes a minute, but would really help me expand my reach and contribute more with great projects like this. Thank you!