|
|
@ -52,6 +52,27 @@ public class SDWebForge( |
|
|
|
|
|
|
|
|
|
|
|
public override List<LaunchOptionDefinition> LaunchOptions => |
|
|
|
public override List<LaunchOptionDefinition> LaunchOptions => |
|
|
|
[ |
|
|
|
[ |
|
|
|
|
|
|
|
new LaunchOptionDefinition |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Name = "Host", |
|
|
|
|
|
|
|
Type = LaunchOptionType.String, |
|
|
|
|
|
|
|
DefaultValue = "localhost", |
|
|
|
|
|
|
|
Options = ["--server-name"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
new LaunchOptionDefinition |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Name = "Port", |
|
|
|
|
|
|
|
Type = LaunchOptionType.String, |
|
|
|
|
|
|
|
DefaultValue = "7860", |
|
|
|
|
|
|
|
Options = ["--port"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
new LaunchOptionDefinition |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Name = "Share", |
|
|
|
|
|
|
|
Type = LaunchOptionType.Bool, |
|
|
|
|
|
|
|
Description = "Set whether to share on Gradio", |
|
|
|
|
|
|
|
Options = { "--share" } |
|
|
|
|
|
|
|
}, |
|
|
|
new LaunchOptionDefinition |
|
|
|
new LaunchOptionDefinition |
|
|
|
{ |
|
|
|
{ |
|
|
|
Name = "Always Offload from VRAM", |
|
|
|
Name = "Always Offload from VRAM", |
|
|
@ -155,4 +176,7 @@ public class SDWebForge( |
|
|
|
await venvRunner.PipInstall(pipArgs, onConsoleOutput).ConfigureAwait(false); |
|
|
|
await venvRunner.PipInstall(pipArgs, onConsoleOutput).ConfigureAwait(false); |
|
|
|
progress?.Report(new ProgressReport(1f, "Install complete", isIndeterminate: false)); |
|
|
|
progress?.Report(new ProgressReport(1f, "Install complete", isIndeterminate: false)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string? ExtraLaunchArguments { get; set; } = |
|
|
|
|
|
|
|
$"--gradio-allowed-path \"{settingsManager.ImagesDirectory}\""; |
|
|
|
} |
|
|
|
} |
|
|
|