Giter VIP home page Giter VIP logo

t_rex's Introduction

T. Rex Python [OpenAI API]

This is the Python version of the t_rex_website repository (similar project but it is written in JS and displays the result as a website).

I used three different APIs to determine the basis for a prompt. The API chosen for this part is randomly selected.

The topic (ex: butterfly catching) is then fed into OpenAI's API to get a picture and appropriate caption.

Run Locally

  • python3.9 -m venv "env"
  • source env/bin/activate
  • pip install -r requirements.txt

Example Output

T.Rex Image

Category: hobbies

Prompt: Create a long form Instagram post in the tone of an influencer who is describing what she did today.

Topic: Stone collecting

Caption: Today was a great day! I went stone collecting and it was so much fun! I got some really cool stones that I can’t wait to show off. I drove out to this spot that I know is usually good for finding beautiful stones. Once I got there I couldn’t believe my eyes! There were so many colors and shapes that it was hard to choose which ones to pick up. I eventually decided and got some of the smoothest stones I’ve ever seen. I’m so happy with what I collected and can’t wait to show them off! That’s why I love going stone collecting - it’s always such an amazing experience! #stonelover #stones #stonecollecting #outdoors #nature #collecting

Url: https://oaidalleapiprodscus.blob.core.windows.net/private/org-7OpZvE448lNOat6zJ57DAFFb/user-s7sYaEG8wuA5J1xtFfnkfg88/img-eBR25Lbu14EeKyd3N9uDNMFr.png?st=2023-06-15T19%3A10%3A15Z&se=2023-06-15T21%3A10%3A15Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-06-14T21%3A20%3A46Z&ske=2023-06-15T21%3A20%3A46Z&sks=b&skv=2021-08-06&sig=cJzs5ksE1BqicMc7Ycd3gek4EJK3E8HFe%2BwwwmorxCQ%3D

t_rex's People

Contributors

ayshajamjam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.