jbilcke-hf HF staff commited on
Commit
2c51dfe
1 Parent(s): 63561e1
Files changed (2) hide show
  1. .env +6 -1
  2. src/app/server/actions/animation.ts +1 -1
.env CHANGED
@@ -3,6 +3,7 @@
3
  # VIDEO_HOTSHOT_XL_API_OFFICIAL
4
  # VIDEO_HOTSHOT_XL_API_NODE
5
  # VIDEO_HOTSHOT_XL_API_GRADIO
 
6
  VIDEO_ENGINE="VIDEO_HOTSHOT_XL_API_GRADIO"
7
 
8
  # the official API developed by the Hotshot-XL team
@@ -16,4 +17,8 @@ VIDEO_HOTSHOT_XL_API_NODE="https://jbilcke-hf-hotshot-xl-api.hf.space/"
16
  # the Gradio Space (with the auto API) developed by @fffiloni
17
  # forked to support multiple LoRAs too
18
  # note: work in progress
19
- VIDEO_HOTSHOT_XL_API_GRADIO="VIDEO_HOTSHOT_XL_API_GRADIO/"
 
 
 
 
 
3
  # VIDEO_HOTSHOT_XL_API_OFFICIAL
4
  # VIDEO_HOTSHOT_XL_API_NODE
5
  # VIDEO_HOTSHOT_XL_API_GRADIO
6
+ # VIDEO_HOTSHOT_XL_API_REPLICATE
7
  VIDEO_ENGINE="VIDEO_HOTSHOT_XL_API_GRADIO"
8
 
9
  # the official API developed by the Hotshot-XL team
 
17
  # the Gradio Space (with the auto API) developed by @fffiloni
18
  # forked to support multiple LoRAs too
19
  # note: work in progress
20
+ VIDEO_HOTSHOT_XL_API_GRADIO="https://jbilcke-hf-hotshot-xl-server.hf.space/"
21
+
22
+ # If you decided to use Replicate for the RENDERING engine
23
+ VIDEO_HOTSHOT_XL_API_REPLICATE_MODEL="cloneofsimo/hotshot-xl-lora-controlnet"
24
+ VIDEO_HOTSHOT_XL_API_REPLICATE_MODEL_VERSION="75e26ffd033a59a78954a3d675632f47f7f8470402aec51c255b9f9b7b62568b"
src/app/server/actions/animation.ts CHANGED
@@ -54,7 +54,7 @@ export async function generateAnimation({
54
 
55
  return content
56
  } else if (videoEngine === "VIDEO_HOTSHOT_XL_API_GRADIO") {
57
- const res = await fetch(gradioApi + "api/predict", {
58
  method: "POST",
59
  headers: {
60
  "Content-Type": "application/json",
 
54
 
55
  return content
56
  } else if (videoEngine === "VIDEO_HOTSHOT_XL_API_GRADIO") {
57
+ const res = await fetch(gradioApi + (gradioApi.endsWith("/") ? "" : "/") + "api/predict", {
58
  method: "POST",
59
  headers: {
60
  "Content-Type": "application/json",