Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ max_attempts = 12
|
|
8 |
|
9 |
def run(prompt, token):
|
10 |
job = requests.post(
|
11 |
-
"https://api.workranked.com/ai-web-design",
|
12 |
data={"prompt": prompt, "token": token},
|
13 |
).json()["data"]["job"]
|
14 |
|
@@ -18,7 +18,7 @@ def run(prompt, token):
|
|
18 |
sleep(10)
|
19 |
|
20 |
result = requests.post(
|
21 |
-
f"https://api.workranked.com/ai-web-design-result",
|
22 |
data={"job": job},
|
23 |
).json()["data"]
|
24 |
if result.get("output"):
|
@@ -59,40 +59,40 @@ Note: this setup/model is experimental; if you encounter any bugs/errors, let me
|
|
59 |
cache_examples=False,
|
60 |
examples=[
|
61 |
[
|
62 |
-
|
63 |
None,
|
64 |
],
|
65 |
[
|
66 |
-
|
67 |
None,
|
68 |
],
|
69 |
[
|
70 |
-
|
71 |
None,
|
72 |
],
|
73 |
[
|
74 |
-
|
75 |
# "homepage, 1920px, award-winning, tech\nminimalist, playful, modern, clean design, bold sans-serif text, colors: pastel purple, white, black\nanalytics, small businesses, e-commerce, marketplace, audience building, pricing, download, connect socials, monetize, creators, influencers, mobile app, community",
|
76 |
None,
|
77 |
],
|
78 |
[
|
79 |
-
|
80 |
None,
|
81 |
],
|
82 |
[
|
83 |
-
|
84 |
None,
|
85 |
],
|
86 |
[
|
87 |
-
|
88 |
None,
|
89 |
],
|
90 |
[
|
91 |
-
|
92 |
None,
|
93 |
],
|
94 |
[
|
95 |
-
|
96 |
None,
|
97 |
],
|
98 |
],
|
|
|
8 |
|
9 |
def run(prompt, token):
|
10 |
job = requests.post(
|
11 |
+
"https://api.workranked.com/webhooks/ai-web-design",
|
12 |
data={"prompt": prompt, "token": token},
|
13 |
).json()["data"]["job"]
|
14 |
|
|
|
18 |
sleep(10)
|
19 |
|
20 |
result = requests.post(
|
21 |
+
f"https://api.workranked.com/webhooks/ai-web-design-result",
|
22 |
data={"job": job},
|
23 |
).json()["data"]
|
24 |
if result.get("output"):
|
|
|
59 |
cache_examples=False,
|
60 |
examples=[
|
61 |
[
|
62 |
+
'header, 1920px, award-winning, community; clean, simple, 2-column, minimal, playful, pastel vibes, vector illustration of graph, icons, rounded buttons, soft shadows, colors: yellow, white, black; reporting analytics, data dashboards, employee engagement, trends, recognition, free trial, peer feedback, integrations, Slack, Microsoft Teams, custom rewards',
|
63 |
None,
|
64 |
],
|
65 |
[
|
66 |
+
'header, 1920px, award-winning, nature; clean, simple, 2-column, minimal, vector illustration of trees, icons, rounded buttons, soft shadows, earthy tones, colors: olive green, cream, soft brown; sustainability, forest services, eco-friendly',
|
67 |
None,
|
68 |
],
|
69 |
[
|
70 |
+
'header, 1920px, award-winning, e-commerce; clean, minimal, interior furniture graphic, Scandinavian design, earthy vibes textures, subtle elegance, icons, rounded buttons, soft shadows, colors: muted beige, warm brown, soft grey; rug collections, decor store, product sale',
|
71 |
None,
|
72 |
],
|
73 |
[
|
74 |
+
'1920px, award-winning, detailed; purple background, bold sans-serif text, minimalist, two-column layout, app store buttons, centered elements, playful, modern, clean design, colors: pastel purple, white, black; templates, marketplace, pricing, download, connect socials, monetize, audience building, analytics, creators, influencers, small businesses, e-commerce, mobile app, community',
|
75 |
# "homepage, 1920px, award-winning, tech\nminimalist, playful, modern, clean design, bold sans-serif text, colors: pastel purple, white, black\nanalytics, small businesses, e-commerce, marketplace, audience building, pricing, download, connect socials, monetize, creators, influencers, mobile app, community",
|
76 |
None,
|
77 |
],
|
78 |
[
|
79 |
+
'header, homepage, 1920px, award-winning, shopping; minimalist, dark mode, flat vector graphic of film camera, tech-focused, monochrome elements, black, orange accents, modern design, futuristic vibe; cinematic gear, motor upgrade, camera control, training app, testimonials, demos, creative filmmaking, film production technology, wireless control, virtual production tools, third axis control',
|
80 |
None,
|
81 |
],
|
82 |
[
|
83 |
+
'header, homepage, 1920px, detailed, award-winning, non-profit; classical, grayscale, academic theme, clean design, serif fonts, overlapping images, geometric accents, neutral tones, colors: muted teal, brick red, classic tan; research programs, antitrust, consumer protection, data security, privacy, financial regulation, innovation, intellectual property, telecommunications, publications, events, policy debates',
|
84 |
None,
|
85 |
],
|
86 |
[
|
87 |
+
'homepage, 1920px, highly detailed; colorful futuristic, vibrant neon green, deep purple, holographic elements, tech-themed, 3D graphics of phones and rings, single bold column, minimal text, playful, modern, floating objects, abstract shapes; financial services, money management, peer-to-peer payments, stock investment, discounts, banking apps, prepaid debit cards, tax filing',
|
88 |
None,
|
89 |
],
|
90 |
[
|
91 |
+
'homepage, 1920px, tech startup, detailed, space; industrial space theme, scientific, modern, technical vibes, large serif text, colors: deep black, cosmic gray, bright red accents; space exploration, robotics, technology development, scientific research, missions, educational resources, planetary studies, climate change',
|
92 |
None,
|
93 |
],
|
94 |
[
|
95 |
+
'header, homepage, 1920px, detailed, award-winning, best visuals; sleek, minimalist, dark mode, monochrome, modern, tech-themed, large hero image, aesthetic, 2-column layout, rounded buttons, seamless transitions, bold typography, dynamic, colors: black, white, violet accents; creative collaboration, media sharing, feedback tracking, cloud-based platform, video editing, production workflow, file transfer',
|
96 |
None,
|
97 |
],
|
98 |
],
|