Spaces:
Runtime error
Runtime error
fix limits
Browse files- app.py +3 -0
- public/index.html +2 -2
app.py
CHANGED
@@ -23,6 +23,9 @@ MAX_QUEUE_SIZE = 4
|
|
23 |
TIMEOUT = float(os.environ.get("TIMEOUT", 0))
|
24 |
SAFETY_CHECKER = os.environ.get("SAFETY_CHECKER", None)
|
25 |
|
|
|
|
|
|
|
26 |
|
27 |
if SAFETY_CHECKER == "True":
|
28 |
pipe = DiffusionPipeline.from_pretrained(
|
|
|
23 |
TIMEOUT = float(os.environ.get("TIMEOUT", 0))
|
24 |
SAFETY_CHECKER = os.environ.get("SAFETY_CHECKER", None)
|
25 |
|
26 |
+
print(f"TIMEOUT: {TIMEOUT}")
|
27 |
+
print(f"SAFETY_CHECKER: {SAFETY_CHECKER}")
|
28 |
+
print(f"MAX_QUEUE_SIZE: {MAX_QUEUE_SIZE}")
|
29 |
|
30 |
if SAFETY_CHECKER == "True":
|
31 |
pipe = DiffusionPipeline.from_pretrained(
|
public/index.html
CHANGED
@@ -112,7 +112,7 @@
|
|
112 |
errorEl.classList.toggle("bg-red-300", "text-red-900");
|
113 |
break;
|
114 |
case "success":
|
115 |
-
errorEl.innerText = "Your
|
116 |
errorEl.classList.toggle("bg-green-300", "text-green-900");
|
117 |
break;
|
118 |
}
|
@@ -203,7 +203,7 @@
|
|
203 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
204 |
8.0</output>
|
205 |
<label class="text-sm font-medium" for="strength">Strength</label>
|
206 |
-
<input type="range" id="strength" name="strength" min="0" max="1" step="0.
|
207 |
oninput="this.nextElementSibling.value = Number(this.value).toFixed(2)">
|
208 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
209 |
0.5</output>
|
|
|
112 |
errorEl.classList.toggle("bg-red-300", "text-red-900");
|
113 |
break;
|
114 |
case "success":
|
115 |
+
errorEl.innerText = "Your session has ended, please start a new one.";
|
116 |
errorEl.classList.toggle("bg-green-300", "text-green-900");
|
117 |
break;
|
118 |
}
|
|
|
203 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
204 |
8.0</output>
|
205 |
<label class="text-sm font-medium" for="strength">Strength</label>
|
206 |
+
<input type="range" id="strength" name="strength" min="0.20" max="1" step="0.001" value="0.50"
|
207 |
oninput="this.nextElementSibling.value = Number(this.value).toFixed(2)">
|
208 |
<output class="text-xs w-[50px] text-center font-light px-1 py-1 border border-gray-700 rounded-md">
|
209 |
0.5</output>
|