jbilcke-hf HF staff commited on
Commit
bae5645
1 Parent(s): d243e97

always use the last entry

Browse files
README.md CHANGED
@@ -20,6 +20,10 @@ As a consequence, a model currently defined as default may be replaced at anytim
20
 
21
  Right now (2023-10-19) the default model is the base Hotshot-XL (use the official website for faster inference at [https://hotshot.co](https://hotshot.co)).
22
 
 
 
 
 
23
  ## Setup
24
 
25
  If you run the app locally you need to create a `.env.local` file
 
20
 
21
  Right now (2023-10-19) the default model is the base Hotshot-XL (use the official website for faster inference at [https://hotshot.co](https://hotshot.co)).
22
 
23
+ # Interpolation model
24
+
25
+ The default model used for interpolation is [ST-MFNet](https://github.com/zsxkib/ST-MFNet)
26
+
27
  ## Setup
28
 
29
  If you run the app locally you need to create a `.env.local` file
src/app/server/actions/interpolate.ts CHANGED
@@ -58,13 +58,12 @@ export async function interpolate(input: string): Promise<string> {
58
  if (res.status === 200) {
59
  try {
60
  const response = (await res.json()) as any
61
- // console.log("response:", response)
62
  const error = `${response?.error || ""}`
63
  if (error) {
64
  throw new Error(error)
65
  }
66
  if (response.status === "succeeded") {
67
- return response.output[1]
68
  }
69
  } catch (err) {
70
  console.error("res.json() error:", err)
 
58
  if (res.status === 200) {
59
  try {
60
  const response = (await res.json()) as any
 
61
  const error = `${response?.error || ""}`
62
  if (error) {
63
  throw new Error(error)
64
  }
65
  if (response.status === "succeeded") {
66
+ return response.output.pop()
67
  }
68
  } catch (err) {
69
  console.error("res.json() error:", err)