Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
videogen
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
videogen
Commits
ad1c700b
Commit
ad1c700b
authored
Feb 25, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --allow-bigger-models option to web interface and MCP server
parent
e0c0485f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
11 deletions
+109
-11
app.js
static/js/app.js
+12
-11
index.html
templates/index.html
+4
-0
videogen_mcp_server.py
videogen_mcp_server.py
+89
-0
webapp.py
webapp.py
+4
-0
No files found.
static/js/app.js
View file @
ad1c700b
...
@@ -328,6 +328,7 @@ async function handleGenerate(e) {
...
@@ -328,6 +328,7 @@ async function handleGenerate(e) {
params
.
sync_audio
=
form
.
querySelector
(
'#sync_audio'
)?.
checked
||
false
;
params
.
sync_audio
=
form
.
querySelector
(
'#sync_audio'
)?.
checked
||
false
;
params
.
lip_sync
=
form
.
querySelector
(
'#lip_sync'
)?.
checked
||
false
;
params
.
lip_sync
=
form
.
querySelector
(
'#lip_sync'
)?.
checked
||
false
;
params
.
no_filter
=
form
.
querySelector
(
'#no_filter'
)?.
checked
||
false
;
params
.
no_filter
=
form
.
querySelector
(
'#no_filter'
)?.
checked
||
false
;
params
.
allow_bigger_models
=
form
.
querySelector
(
'#allow_bigger_models'
)?.
checked
||
false
;
params
.
debug
=
form
.
querySelector
(
'#debug'
)?.
checked
||
false
;
params
.
debug
=
form
.
querySelector
(
'#debug'
)?.
checked
||
false
;
params
.
voice_clone
=
form
.
querySelector
(
'#voice_clone'
)?.
checked
||
false
;
params
.
voice_clone
=
form
.
querySelector
(
'#voice_clone'
)?.
checked
||
false
;
params
.
create_subtitles
=
form
.
querySelector
(
'#create_subtitles'
)?.
checked
||
false
;
params
.
create_subtitles
=
form
.
querySelector
(
'#create_subtitles'
)?.
checked
||
false
;
...
...
templates/index.html
View file @
ad1c700b
...
@@ -433,6 +433,10 @@
...
@@ -433,6 +433,10 @@
<input
type=
"checkbox"
id=
"no_filter"
name=
"no_filter"
>
<input
type=
"checkbox"
id=
"no_filter"
name=
"no_filter"
>
<span>
Disable NSFW Filter
</span>
<span>
Disable NSFW Filter
</span>
</label>
</label>
<label
class=
"checkbox-label"
>
<input
type=
"checkbox"
id=
"allow_bigger_models"
name=
"allow_bigger_models"
>
<span>
Allow Bigger Models (Use RAM)
</span>
</label>
<label
class=
"checkbox-label"
>
<label
class=
"checkbox-label"
>
<input
type=
"checkbox"
id=
"debug"
name=
"debug"
>
<input
type=
"checkbox"
id=
"debug"
name=
"debug"
>
<span>
Debug Mode
</span>
<span>
Debug Mode
</span>
...
...
videogen_mcp_server.py
View file @
ad1c700b
...
@@ -716,6 +716,65 @@ async def list_tools() -> list:
...
@@ -716,6 +716,65 @@ async def list_tools() -> list:
}
}
),
),
Tool
(
name
=
"videogen_allow_bigger_models"
,
description
=
"Allow models larger than available VRAM by using system RAM for offloading (implies sequential offload strategy)."
,
inputSchema
=
{
"type"
:
"object"
,
"properties"
:
{
"prompt"
:
{
"type"
:
"string"
,
"description"
:
"Description of the video to generate"
},
"output"
:
{
"type"
:
"string"
,
"description"
:
"Output filename"
,
"default"
:
"output"
},
"model"
:
{
"type"
:
"string"
,
"description"
:
"Specific model to use (optional, auto-selected if not provided)"
},
"length"
:
{
"type"
:
"number"
,
"description"
:
"Video duration in seconds"
,
"default"
:
5.0
},
"width"
:
{
"type"
:
"integer"
,
"description"
:
"Video width in pixels"
,
"default"
:
832
},
"height"
:
{
"type"
:
"integer"
,
"description"
:
"Video height in pixels"
,
"default"
:
480
},
"fps"
:
{
"type"
:
"integer"
,
"description"
:
"Frames per second"
,
"default"
:
15
},
"seed"
:
{
"type"
:
"integer"
,
"description"
:
"Random seed for reproducibility (-1 for random)"
,
"default"
:
-
1
},
"auto"
:
{
"type"
:
"boolean"
,
"description"
:
"Use automatic mode (recommended)"
,
"default"
:
True
},
"no_filter"
:
{
"type"
:
"boolean"
,
"description"
:
"Disable NSFW filter"
,
"default"
:
False
}
},
"required"
:
[
"prompt"
]
}
),
Tool
(
Tool
(
name
=
"videogen_list_tts_voices"
,
name
=
"videogen_list_tts_voices"
,
description
=
"List all available TTS voices for audio generation."
,
description
=
"List all available TTS voices for audio generation."
,
...
@@ -1206,6 +1265,36 @@ async def call_tool(name: str, arguments: dict) -> list:
...
@@ -1206,6 +1265,36 @@ async def call_tool(name: str, arguments: dict) -> list:
output
,
code
=
run_videogen_command
(
args
)
output
,
code
=
run_videogen_command
(
args
)
return
[
TextContent
(
type
=
"text"
,
text
=
output
)]
return
[
TextContent
(
type
=
"text"
,
text
=
output
)]
elif
name
==
"videogen_allow_bigger_models"
:
args
=
[]
if
arguments
.
get
(
"auto"
,
True
):
args
.
append
(
"--auto"
)
if
arguments
.
get
(
"model"
):
args
.
extend
([
"--model"
,
arguments
[
"model"
]])
args
.
extend
([
"--prompt"
,
arguments
[
"prompt"
]])
args
.
extend
([
"--output"
,
arguments
.
get
(
"output"
,
"output"
)])
if
arguments
.
get
(
"length"
):
args
.
extend
([
"--length"
,
str
(
arguments
[
"length"
])])
if
arguments
.
get
(
"width"
):
args
.
extend
([
"--width"
,
str
(
arguments
[
"width"
])])
if
arguments
.
get
(
"height"
):
args
.
extend
([
"--height"
,
str
(
arguments
[
"height"
])])
if
arguments
.
get
(
"fps"
):
args
.
extend
([
"--fps"
,
str
(
arguments
[
"fps"
])])
if
arguments
.
get
(
"seed"
,
-
1
)
>=
0
:
args
.
extend
([
"--seed"
,
str
(
arguments
[
"seed"
])])
if
arguments
.
get
(
"no_filter"
):
args
.
append
(
"--no_filter"
)
args
.
append
(
"--allow-bigger-models"
)
output
,
code
=
run_videogen_command
(
args
)
return
[
TextContent
(
type
=
"text"
,
text
=
output
)]
elif
name
==
"videogen_list_tts_voices"
:
elif
name
==
"videogen_list_tts_voices"
:
args
=
[
"--tts-list"
]
args
=
[
"--tts-list"
]
output
,
code
=
run_videogen_command
(
args
)
output
,
code
=
run_videogen_command
(
args
)
...
...
webapp.py
View file @
ad1c700b
...
@@ -350,6 +350,10 @@ def build_command(params: Dict) -> List[str]:
...
@@ -350,6 +350,10 @@ def build_command(params: Dict) -> List[str]:
if
params
.
get
(
'vram_limit'
):
if
params
.
get
(
'vram_limit'
):
cmd
.
extend
([
'--vram-limit'
,
str
(
params
[
'vram_limit'
])])
cmd
.
extend
([
'--vram-limit'
,
str
(
params
[
'vram_limit'
])])
# Allow bigger models
if
params
.
get
(
'allow_bigger_models'
):
cmd
.
append
(
'--allow-bigger-models'
)
# Debug
# Debug
if
params
.
get
(
'debug'
):
if
params
.
get
(
'debug'
):
cmd
.
append
(
'--debug'
)
cmd
.
append
(
'--debug'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment