Update app.py
Browse files
app.py
CHANGED
@@ -58,6 +58,10 @@ def random_choices():
|
|
58 |
# https://huggingface.co/docs/api-inference/detailed_parameters
|
59 |
# https://huggingface.co/docs/huggingface_hub/package_reference/inference_client
|
60 |
async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0, seed=-1, timeout=inference_timeout):
|
|
|
|
|
|
|
|
|
61 |
kwargs = {}
|
62 |
if height > 0: kwargs["height"] = height
|
63 |
if width > 0: kwargs["width"] = width
|
|
|
58 |
# https://huggingface.co/docs/api-inference/detailed_parameters
|
59 |
# https://huggingface.co/docs/huggingface_hub/package_reference/inference_client
|
60 |
async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0, seed=-1, timeout=inference_timeout):
|
61 |
+
|
62 |
+
global loopcounter
|
63 |
+
loopcounter = 1
|
64 |
+
|
65 |
kwargs = {}
|
66 |
if height > 0: kwargs["height"] = height
|
67 |
if width > 0: kwargs["width"] = width
|