You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2023. It is now read-only.
Once you give a prompt, 2 different AI's will generate 4 different logo's and they will be automatically uploaded to a CDN.
4
+
5
+
To start, go to secrets and add your openAI API key.
6
+

7
+
8
+
Or if it isn't hosted on Replit, add it in the .env file
9
+
10
+
# Config.json
11
+
`favicon`: A direct url to a image. This is used as favicon \
12
+
`title`: The name that is used as website title. For example the index is `<title> - Home`. \
13
+
`lockdown`: If you enable lockdown and restart the repl the webserver will only display a lockdown message. This feature was added to make sure no one spams logo's while I am not online.
ifdata['lockdown']: returnrender_template("msg.html", shortmsg="Lockdown mode",msg="The server is currently in lockdown. Please come back later!", buttons=False, favi=data["favicon"], title=data["title"])
ifdata['lockdown']: returnrender_template("msg.html", shortmsg="Lockdown mode",msg="The server is currently in lockdown. Please come back later!", buttons=False, favi=data["favicon"], title=data["title"])
ifdata['lockdown']: returnrender_template("msg.html", shortmsg="Lockdown mode",msg="The server is currently in lockdown. Please come back later!", buttons=False, favi=data["favicon"], title=data["title"], mark=data["downloadMark"])
else: returnrender_template("msg.html", shortmsg="No prompt",msg="No prompt was given. Please provide a prompt so I can generate logo's!", buttons=True, favi=data["favicon"], title=data["title"])
52
+
53
+
@app.route('/images/<path:path>')
54
+
defsend_image(path):
55
+
ifdata['lockdown']: returnrender_template("msg.html", shortmsg="Lockdown mode",msg="The server is currently in lockdown. Please come back later!", buttons=False, favi=data["favicon"], title=data["title"])
56
+
57
+
returnsend_from_directory('images', path)
58
+
59
+
@app.route('/assets/<path:path>')
60
+
defsend_asset(path):
61
+
ifdata['lockdown']: returnrender_template("msg.html", shortmsg="Lockdown mode",msg="The server is currently in lockdown. Please come back later!", buttons=False, favi=data["favicon"], title=data["title"])
62
+
63
+
returnsend_from_directory('assets', path)
64
+
65
+
@app.errorhandler(404)
66
+
defpage_not_found(e):
67
+
ifdata['lockdown']: returnrender_template("msg.html", shortmsg="Lockdown mode",msg="The server is currently in lockdown. Please come back later!", buttons=False, favi=data["favicon"], title=data["title"])
68
+
returnrender_template("msg.html", shortmsg="404",msg="It looks like the page you were looking for is not here D:", buttons=True, favi=data["favicon"], title=data["title"])
69
+
70
+
if__name__=="__main__":
71
+
#app.run('0.0.0.0',port=server_port)
72
+
started=round(time.time())
73
+
print(f"\033[32m[Waitress] serving on \033[0;36m\"{REPLURL}\"\033[0m at {convertFromSeconds(started)}")
0 commit comments