Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
Show sample images on the webapp to use for 'Upload Picture' and 'Submit'

I want my web app to show a set of sample images (sample images I will give myself)- and the user can select from among those pictures to use for the 'upload' and 'submit' button on the screen.

Basically I am deploying my ML model that makes different predictions from the image the user uploads. I want to give a few sample images to use instead so the user can better understand the models perspective.

I am not a pro on the dev side and I am having a lot of difficulty finding something similar to it. My front end is HTML, CSS, JS and my backend is on Flask.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The simplest way to display images is to have divs with background images and use flex for styling. A div will be more flexible when it comes to scaling your styles.

// css

.container{
  display: flex;
  gap: 5%;
  flex-wrap: wrap;
 }
 
 .imageContainer {
  flex: 1 1 200px;
  background-image: url('https://source.unsplash.com/random');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
 }
<div class="container">
  <div class="imageContainer"></div>
  <div class="imageContainer"></div>
  <div class="imageContainer"></div>
  <div class="imageContainer"></div>
  <div class="imageContainer"></div>
<div>

You can then add more styles to your 'imageContainer' div as you add the upload buttons.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda