Spaces:
Sleeping
Sleeping
update generateImage function
Browse files- 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
|
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;
|