Skip to content

Commit

Permalink
Merge pull request #33 from alissatroiano/faq-branch
Browse files Browse the repository at this point in the history
Faq branch
  • Loading branch information
alissatroiano authored Aug 30, 2023
2 parents b2993be + 924e148 commit 931c0db
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion hugo/templates/add_hugo.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,23 @@ <h2 class="display-font text-center my-3 my-md-4">Create AI Art</h2>
"Digital illustration of a dimension breaking apart, using vivid colors and fractured elements",
"Cyberpunk digital art of a neon-lit city with a samurai figure, highlighting the contrast between traditional and futuristic",
"Darth Vader in a cityscape at night, with bright lights and tall buildings, monumental, japanese wood block style",
"Superman, playing an instrument and singing in a green meadow"
"Superman, playing an instrument and singing in a green meadow",
"Early morning photography of a landscape shrouded in mist, with diffused light and long shadows",
"Lifestyle photography of someone listening to vinyl records, using warm tones to evoke nostalgia",
"Landscape photography of snow-covered mountain peaks at sunrise, using natural light.",
"Interior photography of a cozy corner in a modern, clean office, using natural light",
"Documentary photography of vibrant street art, using color and composition to convey the artwork’s energy.",
"Daguerreotype still life of a student’s desk with laptop, in front of a window",
"Drone photography of a pack of wolves crossing the tundra, sunset shadows",
"High-fashion hooded figures in icy blue ballgowns, in a crypt, editorial fashion photography from Vogue magazine. (Some facial elements removed in post)",
"Fish-eye lens photograph of a futuristic neon cityscape",
"Man in Spiderman costume in NYC at night, harsh flash photography",
"A woman walking away from camera in NYC on bright sunny day, photo with Lomography Color Negative 100",
"Friends dancing with glowsticks at rave, long exposure photograph with slow shutter speed",
"3d render simple minimal toy art kaws styles of a cute cartoon fat shih tzu barking, modern minimalist, digital art",
"Woman with elf ears, wearing a dress half black half red. She has fairy like wings, and a mole above her lips. Digital art, minimalist, 3d render, fou",
"3d render simple minimal toy art kaws styles of a cute cartoon fat shih tzu barking, modern minimalist, digital art",
"Blueprint schematic of a futuristic car, 3d hologram, digital art, 3d render"
];

var randomPrompt = prompts[Math.floor(Math.random() * prompts.length)];
Expand Down
10 changes: 10 additions & 0 deletions hugo/templates/hugo.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<li class="dropdown-item-light">
<a class="style-item display-font" href="{% url 'hugo' %}?style=abstract-art&direction=asc" class="nav-link display-font">Abstract Art</a>
</li>
<li class="dropdown-item-light">
<a class="style-item display-font" href="{% url 'hugo' %}?style=photography&direction=asc" class="nav-link display-font">Photography</a>
</li>
<li class="dropdown-item-light">
<a class="style-item display-font" href="{% url 'hugo' %}" class="nav-link display-font">View All</a></li>
</ul>
Expand Down Expand Up @@ -84,6 +87,13 @@ <h4 class="body-font style-text mx-3 mx-md-5 px-md-5">The street art model was t
<hr class="w-50 mb-1">
<div class="text-center my-3 mx-3 mx-md-4 mx-lg-5 px-3 px-md-4 px-md-lg">
<h4 class="body-font style-text mx-3 mx-md-5 px-md-5">The abstract art model was trained to create images in the likeness of famous abstract artists <a href="#" target="_blank" class="link-font">Jackson Pollock</a> and <a href="https://www.jackson-pollock.org/" target="_blank" class="link-font">Piet Mondrian.</a></h4>
</div>
{% endif %}
{% if s.friendly_name == 'Photography' %}
<hr class="w-50 mb-1">
<div class="text-center my-3 mx-3 mx-md-4 mx-lg-5 px-3 px-md-4 px-md-lg">
<h4 class="body-font style-text mx-3 mx-md-5 px-md-5">The photography model was trained on a dataset of highly detailed, non-computerized, realistic and natural <strong>stock photographs</strong>, shot in high-resolution.
</h4>
</div>
{% endif %}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion hugo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def add_hugo(request):
'fine-art': 'SELECT * FROM open_ai.fine_art WHERE text="{}";',
'street-art': 'SELECT * FROM open_ai.urban_art WHERE text="{}";',
'abstract-art': 'SELECT * FROM open_ai.abstract WHERE text="{}";',
'photography': 'SELECT * FROM open_ai.stock_photos WHERE text="{}";'
'photography': 'SELECT * FROM open_ai.photography WHERE text="{}";'
}

query_template = style_queries.get(style.name)
Expand Down
Binary file added media/image_1693428928_uripeo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image_1693429006_mresjn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions templates/includes/hugo-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
<li class="list-item">
<a href="{% url 'hugo' %}?style=abstract-art&direction=asc" class="nav-link display-font">Abstract</a>
</li>
<li class="list-item">
<a href="{% url 'hugo' %}?style=photography&direction=asc" class="nav-link display-font">Photography</a>
</li>
</ul>
</div>
3 changes: 3 additions & 0 deletions templates/includes/shop-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<li class="list-item">
<a href="{% url 'shop' %}?category=abstract-art&direction=asc" class="nav-link display-font">Abstract</a>
</li>
<li class="list-item">
<a href="{% url 'shop' %}?category=photography&direction=asc" class="nav-link display-font">Photography</a>
</li>

<li class="list-item">
<div class="col-12 col-lg-auto my-0 mx-auto w-auto">
Expand Down

0 comments on commit 931c0db

Please sign in to comment.