Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """Accepts original image and tags."""
- # -*- coding: utf-8 -*-
- from datetime import datetime
- from easygui import fileopenbox
- import loader
- print("Choose image file")
- while True: # picks original image
- screenshot_link = fileopenbox()
- if screenshot_link[-3::] == "png" or screenshot_link[-3::] == "jpg":
- print(f"You choose '{screenshot_link}'")
- break
- print("Choose image file")
- print("Enter some tags (for example hair color) \nType '.' to stop")
- TAGS = []
- while True:
- tag = input(":")
- if tag == "." and 1 <= len(TAGS) or len(TAGS) > 5:
- break
- TAGS.append(tag)
- TAGS = "+".join(TAGS)
- print(loader.main(screenshot_link, TAGS))
Advertisement
Add Comment
Please, Sign In to add comment