Empereur-Pirate commited on
Commit
be0d579
·
verified ·
1 Parent(s): 7809f5a

Update static/script.js

Browse files
Files changed (1) hide show
  1. 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': 'application/json'
58
  },
59
- body: JSON.stringify({ input: text })
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();