Spaces:
Sleeping
Sleeping
| <html> | |
| <head> | |
| <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | |
| <title>Chat com IA</title> | |
| </head> | |
| <body> | |
| <div class="chat-container"> | |
| <div class="chat-box"> | |
| <form method="post"> | |
| <h1>Chat com a IA</h1> | |
| <p class="info-modelo"> (Você está conversando com um modelo gemini-1.5-flash)</p> | |
| <p>Oi, {{ history.name }}, espero que esteja tendo um ótimo dia!<br> | |
| Eu sei tudo sobre livros e estou aqui para te ajudar.<br> | |
| O que você deseja saber?</p> | |
| <input type="text" id="question" name="question" required> | |
| <button type="submit">Enviar</button> | |
| </form> | |
| </div> | |
| {% if response %} | |
| <div class="response-box"> | |
| <h3>Resposta:</h3> | |
| <p class="resposta-formatada">{{ response | safe }}</p> | |
| </div> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |