Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,12 @@ def get_caption(image_in):
|
|
14 |
def get_lcm(prompt):
|
15 |
client = Client("https://latent-consistency-lcm-lora-for-sdxl.hf.space/")
|
16 |
result = client.predict(
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
)
|
24 |
print(result)
|
25 |
return result[0]
|
|
|
14 |
def get_lcm(prompt):
|
15 |
client = Client("https://latent-consistency-lcm-lora-for-sdxl.hf.space/")
|
16 |
result = client.predict(
|
17 |
+
prompt, # str in 'parameter_5' Textbox component
|
18 |
+
0.3, # float (numeric value between 0.0 and 5) in 'Guidance' Slider component
|
19 |
+
8, # float (numeric value between 2 and 10) in 'Steps' Slider component
|
20 |
+
0, # float (numeric value between 0 and 12013012031030) in 'Seed' Slider component
|
21 |
+
True, # bool in 'Randomize' Checkbox component
|
22 |
+
api_name="/predict"
|
23 |
)
|
24 |
print(result)
|
25 |
return result[0]
|