jclyo1 commited on
Commit
64e066b
1 Parent(s): 4a1a696

update generateImage function

Browse files
Files changed (1) hide show
  1. static/script.js +1 -1
static/script.js CHANGED
@@ -24,7 +24,7 @@ textGenForm.addEventListener('submit', async (event) => {
24
  */
25
 
26
  const generateImage = async (text) => {
27
- const inferResponse = await fetch(`generate-picsum?prompt=${text}`);
28
  const inferJson = await inferResponse.json();
29
 
30
  return inferJson.output;
 
24
  */
25
 
26
  const generateImage = async (text) => {
27
+ const inferResponse = await fetch(`generate?prompt=${text}`);
28
  const inferJson = await inferResponse.json();
29
 
30
  return inferJson.output;