Cleaned up import paths and added more gpt to gitignore
This commit is contained in:
parent
21fd9fe968
commit
0be88732c6
|
@ -1,5 +1,6 @@
|
|||
/target
|
||||
.vscode
|
||||
gpt/
|
||||
gpt
|
||||
bot_config.json
|
||||
fediverse.toml
|
14
src/main.rs
14
src/main.rs
|
@ -3,7 +3,9 @@ use std::{error::Error, process, thread, time::Duration};
|
|||
use chrono::Local;
|
||||
use rand::Rng;
|
||||
|
||||
use crate::publish::ConsolePublisher;
|
||||
use crate::{
|
||||
bot::IzzilisBot, generator::Generator, publish::FediversePublisher, selection::ConsoleSelector,
|
||||
};
|
||||
|
||||
mod bot;
|
||||
mod config;
|
||||
|
@ -45,11 +47,11 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
"1".to_string(),
|
||||
],
|
||||
);
|
||||
// let publisher = publish::FediversePublisher::new(cfg.fediverse_base_url())?;
|
||||
let publisher = ConsolePublisher::new();
|
||||
let gen = generator::Generator::new(gpt_model);
|
||||
let console_selector = selection::ConsoleSelector::new();
|
||||
let mut bot = bot::IzzilisBot::new(gen, publisher, console_selector);
|
||||
let publisher = FediversePublisher::new(cfg.fediverse_base_url())?;
|
||||
// let publisher = ConsolePublisher::new();
|
||||
let gen = Generator::new(gpt_model);
|
||||
let console_selector = ConsoleSelector::new();
|
||||
let mut bot = IzzilisBot::new(gen, publisher, console_selector);
|
||||
bot.generate_samples();
|
||||
|
||||
let cfg_interval = cfg.interval_seconds();
|
||||
|
|
Loading…
Reference in New Issue