Spaces:
Sleeping
Sleeping
Update templates/generale.html
Browse files- templates/generale.html +9 -11
templates/generale.html
CHANGED
@@ -66,10 +66,8 @@
|
|
66 |
</style>
|
67 |
</head>
|
68 |
|
69 |
-
<body
|
70 |
-
class="
|
71 |
-
<div
|
72 |
-
class="container mx-auto p-8 bg-white rounded-3xl shadow-2xl max-w-3xl transform transition-all duration-500 ease-in-out hover:scale-102">
|
73 |
<div class="flex justify-between items-center mb-6">
|
74 |
<h1 class="text-3xl font-bold text-gray-800">Poser une question générale</h1>
|
75 |
<button onclick="showInfo()"
|
@@ -98,16 +96,15 @@
|
|
98 |
</div>
|
99 |
|
100 |
<div class="mb-6">
|
101 |
-
<label for="fileUpload" class="block mb-2 text-lg font-medium text-gray-700">Fichiers (optionnel)
|
102 |
-
:</label>
|
103 |
<input type="file" id="fileUpload"
|
104 |
class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-400 input-underline transition duration-200"
|
105 |
multiple>
|
106 |
</div>
|
107 |
|
108 |
-
<div class="mb-
|
109 |
-
<input type="checkbox" id="
|
110 |
-
<label for="
|
111 |
</div>
|
112 |
|
113 |
<button onclick="submitQuestion()"
|
@@ -187,7 +184,8 @@
|
|
187 |
|
188 |
function submitQuestion() {
|
189 |
const question = document.getElementById('questionInput').value;
|
190 |
-
const
|
|
|
191 |
if (question.trim()) {
|
192 |
const loader = document.getElementById('loader');
|
193 |
const responseDiv = document.getElementById('response');
|
@@ -200,7 +198,7 @@
|
|
200 |
|
201 |
const formData = new FormData();
|
202 |
formData.append('question', question);
|
203 |
-
formData.append('
|
204 |
|
205 |
document.querySelectorAll('.url-item').forEach(item => {
|
206 |
formData.append('urls', item.querySelector('span').textContent);
|
|
|
66 |
</style>
|
67 |
</head>
|
68 |
|
69 |
+
<body class="bg-gradient-to-r from-gray-100 to-gray-200 min-h-screen flex items-center justify-center font-sans overflow-x-hidden">
|
70 |
+
<div class="container mx-auto p-8 bg-white rounded-3xl shadow-2xl max-w-3xl transform transition-all duration-500 ease-in-out hover:scale-102">
|
|
|
|
|
71 |
<div class="flex justify-between items-center mb-6">
|
72 |
<h1 class="text-3xl font-bold text-gray-800">Poser une question générale</h1>
|
73 |
<button onclick="showInfo()"
|
|
|
96 |
</div>
|
97 |
|
98 |
<div class="mb-6">
|
99 |
+
<label for="fileUpload" class="block mb-2 text-lg font-medium text-gray-700">Fichiers (optionnel) :</label>
|
|
|
100 |
<input type="file" id="fileUpload"
|
101 |
class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-400 input-underline transition duration-200"
|
102 |
multiple>
|
103 |
</div>
|
104 |
|
105 |
+
<div class="mb-4 flex items-center">
|
106 |
+
<input type="checkbox" id="webSearchCheckbox" class="mr-2">
|
107 |
+
<label for="webSearchCheckbox" class="text-lg text-gray-700">Activer la recherche web</label>
|
108 |
</div>
|
109 |
|
110 |
<button onclick="submitQuestion()"
|
|
|
184 |
|
185 |
function submitQuestion() {
|
186 |
const question = document.getElementById('questionInput').value;
|
187 |
+
const webSearchEnabled = document.getElementById('webSearchCheckbox').checked;
|
188 |
+
|
189 |
if (question.trim()) {
|
190 |
const loader = document.getElementById('loader');
|
191 |
const responseDiv = document.getElementById('response');
|
|
|
198 |
|
199 |
const formData = new FormData();
|
200 |
formData.append('question', question);
|
201 |
+
formData.append('web_search', webSearchEnabled);
|
202 |
|
203 |
document.querySelectorAll('.url-item').forEach(item => {
|
204 |
formData.append('urls', item.querySelector('span').textContent);
|