File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 53
53
from npcsh .image_gen import (
54
54
generate_image_litellm ,
55
55
)
56
+ from npcsh .video_gen import (
57
+ generate_video_diffusers ,
58
+ )
56
59
57
60
from npcsh .embeddings import (
58
61
get_ollama_embeddings ,
@@ -293,7 +296,6 @@ def generate_video(
293
296
model ,
294
297
npc = npc ,
295
298
device = device ,
296
- model = model ,
297
299
)
298
300
if provider == "diffusers" :
299
301
return {"output" : "output path at " + output_path , "messages" : messages }
Original file line number Diff line number Diff line change 76
76
"Could not load the sentence-transformers package. If you want to use it or other local AI features, please run `pip install npcsh[local]` ."
77
77
)
78
78
79
- try :
80
- from npcsh .video_gen import generate_video_diffusers
81
- except :
82
- print (
83
- "Could not load the video generation package. If you want to use it or other local AI features, please run `pip install npcsh[local]` ."
84
- )
85
-
86
79
from npcsh .load_data import (
87
80
load_pdf ,
88
81
load_csv ,
103
96
NPCSH_VISION_PROVIDER ,
104
97
NPCSH_IMAGE_GEN_MODEL ,
105
98
NPCSH_IMAGE_GEN_PROVIDER ,
99
+ NPCSH_VIDEO_GEN_MODEL ,
100
+ NPCSH_VIDEO_GEN_PROVIDER ,
106
101
)
107
102
from npcsh .command_history import (
108
103
CommandHistory ,
@@ -2059,11 +2054,10 @@ def execute_slash_command(
2059
2054
2060
2055
output = generate_video (
2061
2056
command ,
2057
+ model = NPCSH_VIDEO_GEN_MODEL ,
2058
+ provider = NPCSH_VIDEO_GEN_PROVIDER ,
2062
2059
npc = npc ,
2063
2060
messages = messages ,
2064
- model = model ,
2065
- provider = provider ,
2066
- stream = stream ,
2067
2061
)
2068
2062
messages = output ["messages" ]
2069
2063
output = output ["output" ]
You can’t perform that action at this time.
0 commit comments