Spaces:
Sleeping
Sleeping
UI now shows different loading
Browse files- src/App.js +11 -3
src/App.js
CHANGED
|
@@ -682,14 +682,22 @@ function App() {
|
|
| 682 |
// Give UI time to show initial validation status
|
| 683 |
await new Promise(resolve => setTimeout(resolve, 200));
|
| 684 |
|
| 685 |
-
// Update status
|
| 686 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 687 |
await new Promise(resolve => setTimeout(resolve, 150));
|
| 688 |
|
| 689 |
const debugResult = await sendChat(userMsg.text, strictMode, historyForBackend, token, sessionId);
|
| 690 |
|
| 691 |
// Update status: processing debug info
|
| 692 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 693 |
await new Promise(resolve => setTimeout(resolve, 200));
|
| 694 |
|
| 695 |
if (debugResult.prolog_query_info) {
|
|
|
|
| 682 |
// Give UI time to show initial validation status
|
| 683 |
await new Promise(resolve => setTimeout(resolve, 200));
|
| 684 |
|
| 685 |
+
// Update status based on mode
|
| 686 |
+
if (strictMode) {
|
| 687 |
+
setLoadingStatus("Verifying citations and strict mode compliance...");
|
| 688 |
+
} else {
|
| 689 |
+
setLoadingStatus("Processing response...");
|
| 690 |
+
}
|
| 691 |
await new Promise(resolve => setTimeout(resolve, 150));
|
| 692 |
|
| 693 |
const debugResult = await sendChat(userMsg.text, strictMode, historyForBackend, token, sessionId);
|
| 694 |
|
| 695 |
// Update status: processing debug info
|
| 696 |
+
if (strictMode) {
|
| 697 |
+
setLoadingStatus("Processing validation results...");
|
| 698 |
+
} else {
|
| 699 |
+
setLoadingStatus("Finalizing response...");
|
| 700 |
+
}
|
| 701 |
await new Promise(resolve => setTimeout(resolve, 200));
|
| 702 |
|
| 703 |
if (debugResult.prolog_query_info) {
|