Spaces:
Sleeping
Sleeping
Adam Helmi
commited on
Commit
·
c5bc7f3
1
Parent(s):
309a4e8
no message
Browse files
script.js
CHANGED
@@ -15,6 +15,7 @@ async function translateText(rumiText) {
|
|
15 |
try {
|
16 |
const response = await fetch('https://huggingface.co/spaces/GobLyne/Jawi-Translation/translate', { // Replace with your FastAPI server URL
|
17 |
method: 'POST',
|
|
|
18 |
headers: {
|
19 |
'Content-Type': 'application/json',
|
20 |
},
|
|
|
15 |
try {
|
16 |
const response = await fetch('https://huggingface.co/spaces/GobLyne/Jawi-Translation/translate', { // Replace with your FastAPI server URL
|
17 |
method: 'POST',
|
18 |
+
mode: 'no-cors',
|
19 |
headers: {
|
20 |
'Content-Type': 'application/json',
|
21 |
},
|