Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
minor update
Browse files
README.md
CHANGED
@@ -9,3 +9,10 @@ app_port: 7860
|
|
9 |
---
|
10 |
|
11 |
A micro service to generate videos
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
|
11 |
A micro service to generate videos
|
12 |
+
|
13 |
+
# Installation
|
14 |
+
|
15 |
+
1. `npm i`
|
16 |
+
2. clone `.env` to `.env.local`
|
17 |
+
3. edit `.env.local` to define the secrets / api access keys
|
18 |
+
4. `npm run start`
|
src/providers/video-generation/generateVideoWithHotshotGradioAPI.mts
CHANGED
@@ -46,7 +46,9 @@ export const generateVideo = async ({
|
|
46 |
|
47 |
try {
|
48 |
|
49 |
-
const rawResponse = await api.predict(
|
|
|
|
|
50 |
secretToken,
|
51 |
positivePrompt, // string in 'Prompt' Textbox component
|
52 |
negativePrompt || "",
|
|
|
46 |
|
47 |
try {
|
48 |
|
49 |
+
const rawResponse = await api.predict(
|
50 |
+
1, // <- important!
|
51 |
+
[
|
52 |
secretToken,
|
53 |
positivePrompt, // string in 'Prompt' Textbox component
|
54 |
negativePrompt || "",
|
src/types.mts
CHANGED
@@ -398,3 +398,4 @@ export type HotshotImageInferenceSize =
|
|
398 |
| '1024x1024' // custom ratio - this isn't supported / supposed to work properly
|
399 |
| '1024x512' // custom panoramic ratio - this isn't supported / supposed to work properly
|
400 |
| '1024x576' // movie ratio (16:9) this isn't supported / supposed to work properly
|
|
|
|
398 |
| '1024x1024' // custom ratio - this isn't supported / supposed to work properly
|
399 |
| '1024x512' // custom panoramic ratio - this isn't supported / supposed to work properly
|
400 |
| '1024x576' // movie ratio (16:9) this isn't supported / supposed to work properly
|
401 |
+
| '576x1024' // tiktok ratio (9:16) this isn't supported / supposed to work properly
|