amine_dubs
commited on
Commit
·
7ba7bbd
1
Parent(s):
b77135a
upload
Browse files- backend/requirements.txt +2 -1
- static/script.js +1 -0
backend/requirements.txt
CHANGED
@@ -11,4 +11,5 @@ sacremoses # Added for MarianMT tokenization
|
|
11 |
jinja2
|
12 |
sentencepiece
|
13 |
tensorflow
|
14 |
-
accelerate
|
|
|
|
11 |
jinja2
|
12 |
sentencepiece
|
13 |
tensorflow
|
14 |
+
accelerate
|
15 |
+
langdetect
|
static/script.js
CHANGED
@@ -462,6 +462,7 @@ window.onload = function() {
|
|
462 |
// Show the document result container
|
463 |
if (docResult) {
|
464 |
docResult.classList.remove('hidden');
|
|
|
465 |
}
|
466 |
// Update filename and detected language
|
467 |
if (docFilename) docFilename.textContent = data.original_filename || '';
|
|
|
462 |
// Show the document result container
|
463 |
if (docResult) {
|
464 |
docResult.classList.remove('hidden');
|
465 |
+
docResult.style.display = 'flex'; // Ensure the result is visible
|
466 |
}
|
467 |
// Update filename and detected language
|
468 |
if (docFilename) docFilename.textContent = data.original_filename || '';
|