Update handler.py
Browse files- handler.py +1 -4
handler.py
CHANGED
|
@@ -46,10 +46,7 @@ class EndpointHandler():
|
|
| 46 |
guidance_scale = data.get("cfg_scale", 7)
|
| 47 |
sampler_index = data.get("sampler_index", "DPM++ 2M Karras") # Default to "DPM++ 2M Karras" if not provided
|
| 48 |
|
| 49 |
-
|
| 50 |
-
if prompt is None:
|
| 51 |
-
return {"error": "Please provide a prompt."}
|
| 52 |
-
|
| 53 |
# Extract controlnet configuration from payload
|
| 54 |
controlnet_config = data.get("alwayson_scripts", {}).get("controlnet", {}).get("args", [{}])[0]
|
| 55 |
|
|
|
|
| 46 |
guidance_scale = data.get("cfg_scale", 7)
|
| 47 |
sampler_index = data.get("sampler_index", "DPM++ 2M Karras") # Default to "DPM++ 2M Karras" if not provided
|
| 48 |
|
| 49 |
+
|
|
|
|
|
|
|
|
|
|
| 50 |
# Extract controlnet configuration from payload
|
| 51 |
controlnet_config = data.get("alwayson_scripts", {}).get("controlnet", {}).get("args", [{}])[0]
|
| 52 |
|