ianluo commited on
Commit
d1d8914
·
1 Parent(s): 55aa3ad
Files changed (1) hide show
  1. static/script.js +1 -1
static/script.js CHANGED
@@ -2,7 +2,7 @@ const textGenForm = document.querySelector(".text-gen-form")
2
 
3
  const translateText = async (text) => {
4
  console.log('start translate');
5
- const inferResponse = await fetch('infer_t5?input=${text}');
6
  const inferJson = await inferResponse.json();
7
 
8
  return inferJson.output;
 
2
 
3
  const translateText = async (text) => {
4
  console.log('start translate');
5
+ const inferResponse = await fetch(`infer_t5?input=${text}`);
6
  const inferJson = await inferResponse.json();
7
 
8
  return inferJson.output;