Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,13 @@ def get_params(request: gr.Request):
|
|
25 |
client = InferenceClient()
|
26 |
models = client.list_deployed_models()
|
27 |
list_models = models["text-to-image"]
|
28 |
-
return list_models,
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
client = InferenceClient()
|
31 |
models = client.list_deployed_models()
|
|
|
25 |
client = InferenceClient()
|
26 |
models = client.list_deployed_models()
|
27 |
list_models = models["text-to-image"]
|
28 |
+
return gr.Dropdown(label="Current Model", choices=list_models, value=DEFAULT_MODEL,
|
29 |
+
info = "default model: {}".format(DEFAULT_MODEL)
|
30 |
+
), gr.Dropdown(label="Prompt selected", choices=get_samples(),
|
31 |
+
value = "1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt",
|
32 |
+
info = "default prompt: {}".format(DEFAULT_PROMPT)
|
33 |
+
)
|
34 |
+
#return list_models, get_samples()
|
35 |
|
36 |
client = InferenceClient()
|
37 |
models = client.list_deployed_models()
|