Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +2 -2
static/script.js
CHANGED
@@ -54,9 +54,9 @@ const generateText = async (text) => {
|
|
54 |
const response = await fetch('/generate_text', {
|
55 |
method: 'POST',
|
56 |
headers: {
|
57 |
-
'Content-Type': '
|
58 |
},
|
59 |
-
body:
|
60 |
});
|
61 |
|
62 |
const data = await response.json();
|
|
|
54 |
const response = await fetch('/generate_text', {
|
55 |
method: 'POST',
|
56 |
headers: {
|
57 |
+
'Content-Type': 'text/plain'
|
58 |
},
|
59 |
+
body: text
|
60 |
});
|
61 |
|
62 |
const data = await response.json();
|