Giter Site home page Giter Site logo

imsosorry-itsonline's Introduction

imsosorry-itsonline

imsosorry its now accessible through API
THIS ENTIRE THING ALREADY EXISTS: api.letsbuilda.dev
built on the amazing, legendary, the one and only imsosorry

How to use

run the web server

python app\main.py

Write your text in a json body and send a POST request through localhost/uwuify

import requests

text = "You are the chosen one."
json = {"text": text}
r = requests.post(r"http://localhost/uwuify", json=json)

print(r.text)
"you~ awe t-the c-chosen onye."

Accepts uwu_meter in json body with "high", "medium", "low" value.
Set to "medium" by default.

import requests

text = "You are the chosen one."
for meter in ("low", "medium", "high"):
    json = {"text": text, "uwu_meter": meter}
    r = requests.post(r"http://localhost/uwuify", json=json)
    print(r.text)
"you awe the chosen o-onye."
"you a-awe~ t-the~ c-chosen~ o-onye."
"you~ a-awe~ t-the~ c-chosen~ onye~ 😳 "

uwu_meter values are in a range. You should see a gap in variety of results using the same text.

import requests

text = "You are the chosen one."
for _ in range(3):
    json = {"text": text, "uwu_meter": "high"}
    r = requests.post(r"http://localhost/uwuify", json=json)
    print(r.text)
"you~ a-awe~ t-the~ c-chosen~ o-onye~ >_< "
"you a-awe~ the~ c-chosen~ o-onye~ ^^ "
"you~ a-awe~ t-the~ chosen~ o-onye."

W̶a̶s̶ ̶t̶h̶e̶r̶e̶ ̶a̶n̶y̶ ̶r̶e̶a̶s̶o̶n̶ ̶f̶o̶r̶ ̶t̶h̶i̶s̶ ̶r̶e̶p̶o̶ ̶t̶o̶ ̶e̶x̶i̶s̶t̶?̶ ̶p̶r̶o̶b̶a̶b̶l̶y̶ ̶n̶o̶t̶.̶
There's even less reason for this to exist now because, it already exists. Still worth it.
Was it worth an hour of my weekend? probably not.
It's funni tho.

imsosorry-itsonline's People

Contributors

rfdzan 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.