Update templates/medical_page.html
Browse files- templates/medical_page.html +23 -15
templates/medical_page.html
CHANGED
|
@@ -92,6 +92,13 @@
|
|
| 92 |
class="bg-gray-50 dark:bg-dark-900 text-gray-800 dark:text-gray-200"
|
| 93 |
id="medical_page"
|
| 94 |
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
<div class="scroll-progress"></div>
|
| 96 |
<nav class="bg-white dark:bg-dark-800 shadow-lg sticky top-0 z-40">
|
| 97 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
@@ -201,21 +208,22 @@
|
|
| 201 |
for swarm analysis.
|
| 202 |
</p>
|
| 203 |
</div>
|
| 204 |
-
{% endif %} {% for chat in history
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
|
|
|
| 219 |
|
| 220 |
{% elif chat.type == 'ai' %}
|
| 221 |
<div class="w-full max-w-2xl space-y-4">
|
|
|
|
| 92 |
class="bg-gray-50 dark:bg-dark-900 text-gray-800 dark:text-gray-200"
|
| 93 |
id="medical_page"
|
| 94 |
>
|
| 95 |
+
<div style="background: yellow; padding: 10px; margin: 10px;">
|
| 96 |
+
DEBUG INFO:<br>
|
| 97 |
+
Answer exists: {{ 'YES' if answer else 'NO' }}<br>
|
| 98 |
+
Answer length: {{ answer|length if answer else 0 }}<br>
|
| 99 |
+
History length: {{ history|length if history else 0 }}<br>
|
| 100 |
+
Answer preview: {{ answer[:100] if answer else 'NONE' }}
|
| 101 |
+
</div>
|
| 102 |
<div class="scroll-progress"></div>
|
| 103 |
<nav class="bg-white dark:bg-dark-800 shadow-lg sticky top-0 z-40">
|
| 104 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
|
|
| 208 |
for swarm analysis.
|
| 209 |
</p>
|
| 210 |
</div>
|
| 211 |
+
{% endif %} {% for chat in history %}
|
| 212 |
+
{% if chat.type == 'human' %}
|
| 213 |
+
<div class="flex justify-end w-full">
|
| 214 |
+
<div
|
| 215 |
+
class="bg-primary-light text-white p-4 rounded-xl shadow-md max-w-2xl"
|
| 216 |
+
>
|
| 217 |
+
<p>
|
| 218 |
+
{{ chat.content if chat.content is string else
|
| 219 |
+
chat.content.content }}
|
| 220 |
+
</p>
|
| 221 |
+
{% if chat.content and '[Document Uploaded]' in chat.content %}<span
|
| 222 |
+
class="text-xs text-blue-200 pt-2 block"
|
| 223 |
+
><i class="fas fa-file-alt mr-1"></i> Document Uploaded</span
|
| 224 |
+
>{% endif %}
|
| 225 |
+
</div>
|
| 226 |
+
</div>
|
| 227 |
|
| 228 |
{% elif chat.type == 'ai' %}
|
| 229 |
<div class="w-full max-w-2xl space-y-4">
|