xyplon
commited on
Update static/models.js
Browse files- static/models.js +2 -2
static/models.js
CHANGED
@@ -121,7 +121,7 @@ function log(msg){
|
|
121 |
|
122 |
let task = 0
|
123 |
btn.onclick = async () => {
|
124 |
-
if(task>
|
125 |
alert("only 4 concurrent image generation is allowed, please wait for pending generations to finish ")
|
126 |
return
|
127 |
}
|
@@ -156,7 +156,7 @@ btn.onclick = async () => {
|
|
156 |
text.innerText = ''
|
157 |
|
158 |
try {
|
159 |
-
const response = await fetch('https://xyplon.
|
160 |
method: 'POST',
|
161 |
headers: {
|
162 |
'Content-Type': 'application/json',
|
|
|
121 |
|
122 |
let task = 0
|
123 |
btn.onclick = async () => {
|
124 |
+
if(task>4){
|
125 |
alert("only 4 concurrent image generation is allowed, please wait for pending generations to finish ")
|
126 |
return
|
127 |
}
|
|
|
156 |
text.innerText = ''
|
157 |
|
158 |
try {
|
159 |
+
const response = await fetch('https://xyplon.koyeb.app/hf/img/gen', {
|
160 |
method: 'POST',
|
161 |
headers: {
|
162 |
'Content-Type': 'application/json',
|