John6666 commited on
Commit
84673dd
β€’
1 Parent(s): 155d3fa

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -38,6 +38,8 @@ def update_imgbox(choices):
38
  return [gr.Image(None, label = m, visible = (m != 'NA')) for m in choices_plus]
39
 
40
 
 
 
41
  async def infer(model_str, prompt, nprompt="", height=None, width=None, steps=None, cfg=None, timeout=inference_timeout):
42
  from pathlib import Path
43
  kwargs = {}
 
38
  return [gr.Image(None, label = m, visible = (m != 'NA')) for m in choices_plus]
39
 
40
 
41
+ # https://huggingface.co/docs/api-inference/detailed_parameters
42
+ # https://huggingface.co/docs/huggingface_hub/package_reference/inference_client
43
  async def infer(model_str, prompt, nprompt="", height=None, width=None, steps=None, cfg=None, timeout=inference_timeout):
44
  from pathlib import Path
45
  kwargs = {}