Spaces:
Running
Running
yasir
commited on
Commit
•
b13be31
1
Parent(s):
049c0b7
Update script.js
Browse files
script.js
CHANGED
@@ -124,7 +124,7 @@ console.error('Error:', error);
|
|
124 |
fullPrompt = inp.value+prompt
|
125 |
}
|
126 |
|
127 |
-
|
128 |
//https://hacking-is-serious-illegal-crime-you.onrender.com/sdxl
|
129 |
let url2 = 'https://hacking-is-serious-illegal-crime-you.onrender.com/get_prediction'
|
130 |
let idlist = []
|
@@ -204,10 +204,18 @@ if (selectedIndex === -1) {
|
|
204 |
}
|
205 |
if(selectedOption.value == 'real'){
|
206 |
isreal = true
|
|
|
207 |
if(step.value>50){
|
208 |
step.value = 50
|
209 |
}
|
210 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
|
212 |
}
|
213 |
negative_prompt = nps
|
@@ -331,10 +339,17 @@ fetch(url2, {
|
|
331 |
}
|
332 |
if(isreal == true){
|
333 |
console.log('hh')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
function final1(){
|
335 |
|
336 |
|
337 |
-
fetch(
|
338 |
method: 'POST',
|
339 |
headers: {
|
340 |
'Content-Type': 'application/json',
|
|
|
124 |
fullPrompt = inp.value+prompt
|
125 |
}
|
126 |
|
127 |
+
let X = false
|
128 |
//https://hacking-is-serious-illegal-crime-you.onrender.com/sdxl
|
129 |
let url2 = 'https://hacking-is-serious-illegal-crime-you.onrender.com/get_prediction'
|
130 |
let idlist = []
|
|
|
204 |
}
|
205 |
if(selectedOption.value == 'real'){
|
206 |
isreal = true
|
207 |
+
X = false
|
208 |
if(step.value>50){
|
209 |
step.value = 50
|
210 |
}
|
211 |
}
|
212 |
+
if(selectedOption.value == 'realX'){
|
213 |
+
isreal = true
|
214 |
+
if(step.value>50){
|
215 |
+
step.value = 50
|
216 |
+
X = true
|
217 |
+
}
|
218 |
+
}
|
219 |
|
220 |
}
|
221 |
negative_prompt = nps
|
|
|
339 |
}
|
340 |
if(isreal == true){
|
341 |
console.log('hh')
|
342 |
+
url = 'https://hacking-is-serious-illegal-crime-you.onrender.com/real'
|
343 |
+
if(X==true){
|
344 |
+
url = 'https://hacking-is-serious-illegal-crime-you.onrender.com/realX'
|
345 |
+
}
|
346 |
+
else{
|
347 |
+
url = 'https://hacking-is-serious-illegal-crime-you.onrender.com/real'
|
348 |
+
}
|
349 |
function final1(){
|
350 |
|
351 |
|
352 |
+
fetch(url, {
|
353 |
method: 'POST',
|
354 |
headers: {
|
355 |
'Content-Type': 'application/json',
|