fffiloni commited on
Commit
f56fa59
1 Parent(s): d6192f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- fn_index=1
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
- api_name ="/image_to_video"
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