Spaces:
Running
Running
Upload app.py
Browse files
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 = {}
|