Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def get_instantID(portrait_in, prompt):
|
|
16 |
0.8, # float (numeric value between 0 and 1.5) in 'Image adapter strength (for detail)' Slider component
|
17 |
5, # float (numeric value between 0.1 and 10.0) in 'Guidance scale' Slider component
|
18 |
0, # float (numeric value between 0 and 2147483647) in 'Seed' Slider component
|
19 |
-
|
20 |
)
|
21 |
print(result)
|
22 |
return result[0]
|
@@ -26,7 +26,7 @@ def get_video(image_in, prompt):
|
|
26 |
result = client.predict(
|
27 |
image_in,
|
28 |
prompt,
|
29 |
-
|
30 |
)
|
31 |
print(result)
|
32 |
return result
|
|
|
16 |
0.8, # float (numeric value between 0 and 1.5) in 'Image adapter strength (for detail)' Slider component
|
17 |
5, # float (numeric value between 0.1 and 10.0) in 'Guidance scale' Slider component
|
18 |
0, # float (numeric value between 0 and 2147483647) in 'Seed' Slider component
|
19 |
+
api_name="/generate_image"
|
20 |
)
|
21 |
print(result)
|
22 |
return result[0]
|
|
|
26 |
result = client.predict(
|
27 |
image_in,
|
28 |
prompt,
|
29 |
+
fn_index=1
|
30 |
)
|
31 |
print(result)
|
32 |
return result
|