Skip to content

Commit

Permalink
add rust fn outline
Browse files Browse the repository at this point in the history
  • Loading branch information
magdyksaleh committed Feb 17, 2024
1 parent d820ae0 commit 8cc237e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@ struct Args {
/// Download model weights only
#[clap(long, env)]
download_only: bool,

/// Launch testing GUI
/// This will launch a GUI that will allow you to test the model
#[clap(long, env)]
launch_gui: bool,

/// Gui port
#[clap(long, env)]
gui_port: Option<u16>,
}

#[derive(Debug)]
Expand Down Expand Up @@ -958,6 +967,10 @@ fn spawn_shards(
Ok(())
}

fn spawn_gui(port: u16) -> Result<Child, LauncherError> {
tracing::info!("Starting GUI");
}

fn spawn_webserver(
args: Args,
shutdown: Arc<AtomicBool>,
Expand Down

0 comments on commit 8cc237e

Please sign in to comment.