Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Poser une question - ChatGPT</title>
<style>
body { font-family: sans-serif; margin: 2em; }
textarea, input[type="text"] { width: 100%; padding: 0.5em; margin-top: 1em; }
.btn-submit { padding: 0.5em 1.2em; background-color: #28a745; color: white; border: none; border-radius: 4px; }
.btn-submit:hover { background-color: #218838; }
.answer-box { margin-top: 2em; padding: 1em; background-color: #f8f9fa; border-left: 4px solid #17a2b8; }
</style>
</head>
<body>
<h1>Posez une question sur la capture (ChatGPT)</h1>

<form method="post">
<label for="question">Votre question :</label>
<input type="text" name="question" id="question" placeholder="Ex : Résume ce texte">

<button type="submit" class="btn-submit">Envoyer</button>
</form>

{% if chatgpt_answer %}
<div class="answer-box">
<h3>Réponse :</h3>
<p>{{ chatgpt_answer }}</p>
</div>
{% endif %}


<p><a href="{{ url_for('user_display_capture', filename=capture_id) }}">← Retour à l'image</a></p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Choisir le système de réponse</title>
<style>
body { font-family: sans-serif; margin: 2em; }
.choice-buttons { margin-top: 2em; display: flex; gap: 1em; }
.btn-choice { padding: 0.5em 1.2em; background-color: #007bff; color: white; border: none; border-radius: 4px; text-decoration: none; }
.btn-choice:hover { background-color: #0069d9; }
</style>
</head>
<body>
<h1>Choisissez le système de réponse</h1>

<div class="choice-buttons">
<a href="{{ url_for('user_question_chatgpt', capture_id=capture_id) }}" class="btn-choice">ChatGPT</a>
<a href="{{ url_for('user_question_nlp', capture_id=capture_id) }}" class="btn-choice">NLP</a>
</div>

<p><a href="{{ url_for('user_display_capture', filename=capture_id) }}">← Retour à l'image</a></p>
</body>
</html>
34 changes: 34 additions & 0 deletions LocalApp/SMARTWEBSCRAPPER-CV/app/templates/user_question_nlp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Poser une question - NLP</title>
<style>
body { font-family: sans-serif; margin: 2em; }
textarea, input[type="text"] { width: 100%; padding: 0.5em; margin-top: 1em; }
.btn-submit { padding: 0.5em 1.2em; background-color: #28a745; color: white; border: none; border-radius: 4px; }
.btn-submit:hover { background-color: #218838; }
.answer-box { margin-top: 2em; padding: 1em; background-color: #f8f9fa; border-left: 4px solid #17a2b8; }
</style>
</head>
<body>
<h1>Posez une question sur la capture (NLP)</h1>

<form method="post">
<label for="question">Votre question :</label>
<input type="text" name="question" id="question" placeholder="Ex : Résume ce texte">

<button type="submit" class="btn-submit">Envoyer</button>
</form>

{% if answer %}
<div class="answer-box">
<h3>Réponse :</h3>
<p>{{ answer }}</p>
</div>
{% endif %}


<p><a href="{{ url_for('user_display_capture', filename=capture_id) }}">← Retour à l'image</a></p>
</body>
</html>