DetGC commited on
Commit
d9ee8eb
·
verified ·
1 Parent(s): 5434ce2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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