mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
move deprecated crates
This commit is contained in:
1 parent
542064f25b
commit
96be8c19d5
67 files changed
+27
-27
No files matched your search
+5
-5
@@ -79,15 +79,15 @@ members = [
|
||||
"crates/lib/jobs_common",
|
||||
"crates/lib/jwt_light",
|
||||
"crates/lib/logging",
|
||||
"crates/lib/machine_learning/ml_weights_registry",
|
||||
"crates/lib/machine_learning/prompt_engineering",
|
||||
"crates/lib/deprecated/machine_learning/ml_weights_registry",
|
||||
"crates/lib/deprecated/machine_learning/prompt_engineering",
|
||||
"crates/lib/markdown",
|
||||
"crates/schema/database/migration",
|
||||
"crates/lib/password",
|
||||
"crates/lib/server_environment",
|
||||
"crates/lib/sqlx_mysql_helpers",
|
||||
"crates/lib/storyteller_root",
|
||||
"crates/lib/subprocess_common",
|
||||
"crates/lib/deprecated/subprocess_common",
|
||||
"crates/lib/test_data",
|
||||
"crates/lib/testing",
|
||||
"crates/lib/deprecated/tts_common",
|
||||
@@ -96,7 +96,7 @@ members = [
|
||||
"crates/lib/user_input_common",
|
||||
"crates/lib/users",
|
||||
#"crates/lib/api_clients/fakeyou_client",
|
||||
#"crates/lib/machine_learning/ml_models",
|
||||
#"crates/lib/deprecated/machine_learning/ml_models",
|
||||
|
||||
# Schema (database): queries, database layouts, Redis keys, etc.
|
||||
"crates/schema/database/elasticsearch_schema",
|
||||
@@ -251,7 +251,7 @@ primitives = { path = "crates/lib/data/primitives" }
|
||||
seedance2pro_client = { path = "crates/api_clients/seedance2pro_client" }
|
||||
shared_service_components = { path = "crates/lib/shared_service_components" }
|
||||
sqlite_tasks = { path = "crates/schema/database/sqlite_tasks" }
|
||||
subprocess_common = { path = "crates/lib/subprocess_common" }
|
||||
subprocess_common = { path = "crates/lib/deprecated/subprocess_common" }
|
||||
test_data = { path = "crates/lib/test_data" }
|
||||
testing = { path = "crates/lib/testing" }
|
||||
tokens = { path = "crates/schema/public/tokens" }
|
||||
|
||||
@@ -22,7 +22,7 @@ workspace-build-acceleration.workspace = true
|
||||
# Internal
|
||||
crockford.workspace = true
|
||||
errors.workspace = true
|
||||
subprocess_common = { path = "../../lib/subprocess_common" }
|
||||
subprocess_common = { path = "../../lib/deprecated/subprocess_common" }
|
||||
|
||||
# External
|
||||
anyhow.workspace = true
|
||||
|
||||
@@ -20,7 +20,7 @@ workspace-build-acceleration.workspace = true
|
||||
crockford.workspace = true
|
||||
errors.workspace = true
|
||||
uuid_utils.workspace = true
|
||||
subprocess_common = { path = "../../lib/subprocess_common" }
|
||||
subprocess_common = { path = "../../lib/deprecated/subprocess_common" }
|
||||
|
||||
# External
|
||||
anyhow.workspace = true
|
||||
|
||||
@@ -21,7 +21,7 @@ crockford.workspace = true
|
||||
errors.workspace = true
|
||||
uuid_utils.workspace = true
|
||||
jwt_light.workspace = true
|
||||
subprocess_common = { path = "../../lib/subprocess_common" }
|
||||
subprocess_common = { path = "../../lib/deprecated/subprocess_common" }
|
||||
|
||||
# External
|
||||
anyhow.workspace = true
|
||||
|
||||
@@ -24,7 +24,7 @@ tauri-build = { version = "2.1.1", features = [] }
|
||||
crockford = { path = "../../lib/data/crockford" }
|
||||
filesys = { path = "../../lib/files/filesys" }
|
||||
memory_caching = { path = "../../lib/caching/memory_caching" }
|
||||
ml_weights_registry = { path = "../../lib/machine_learning/ml_weights_registry" }
|
||||
ml_weights_registry = { path = "../../lib/deprecated/machine_learning/ml_weights_registry" }
|
||||
primitives = { path = "../../lib/data/primitives" }
|
||||
|
||||
# Internal ML
|
||||
@@ -64,7 +64,7 @@ tokio-util = { version = "0.7", features = ["codec"] }
|
||||
# tracing-subscriber = { version = "0.3", features = [ "env-filter", "fmt" ] }
|
||||
|
||||
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
||||
ml_models = { path = "../../lib/machine_learning/ml_models" }
|
||||
ml_models = { path = "../../lib/deprecated/machine_learning/ml_models" }
|
||||
|
||||
[dev-dependencies]
|
||||
libloading = "0.8.6"
|
||||
|
||||
+7
-7
@@ -22,11 +22,11 @@ normal = ["workspace-build-acceleration"]
|
||||
workspace-build-acceleration = { workspace = true }
|
||||
|
||||
# Internal
|
||||
filesys = { path = "../../files/filesys" }
|
||||
image_algorithms = { path = "../../deprecated/image_algorithms" }
|
||||
memory_caching = { path = "../../caching/memory_caching" }
|
||||
filesys = { path = "../../../files/filesys" }
|
||||
image_algorithms = { path = "../image_algorithms" }
|
||||
memory_caching = { path = "../../../caching/memory_caching" }
|
||||
ml_weights_registry = { path = "../ml_weights_registry" }
|
||||
primitives = { path = "../../data/primitives" }
|
||||
primitives = { path = "../../../data/primitives" }
|
||||
|
||||
# Bypass cudarc issues on Windows https://github.com/coreylowman/cudarc/issues/332
|
||||
cudarc = "0.13.7"
|
||||
@@ -35,9 +35,9 @@ cudarc = "0.13.7"
|
||||
anyhow = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
bytes = "1.10"
|
||||
candle-core = { path = "../../../vendor/candle/candle-core", features = ["cuda"] }
|
||||
candle-nn = { path = "../../../vendor/candle/candle-nn", features = ["cuda"] }
|
||||
candle-transformers = { path = "../../../vendor/candle/candle-transformers", features = ["cuda"] }
|
||||
candle-core = { path = "../../../../vendor/candle/candle-core", features = ["cuda"] }
|
||||
candle-nn = { path = "../../../../vendor/candle/candle-nn", features = ["cuda"] }
|
||||
candle-transformers = { path = "../../../../vendor/candle/candle-transformers", features = ["cuda"] }
|
||||
const_format = "0.2.34"
|
||||
directories = "6.0.0"
|
||||
dirs = "6.0.0"
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -2,7 +2,7 @@ use std::collections::HashSet;
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
const TERMS : &str = include_str!("../../../../../../includes/binary_includes/safety/dictionary_children_terms.txt");
|
||||
const TERMS : &str = include_str!("../../../../../../../includes/binary_includes/safety/dictionary_children_terms.txt");
|
||||
|
||||
pub (crate) fn contains_children_keyword(prompt_tokens: &[String]) -> bool {
|
||||
static TERM_DICTIONARY : Lazy<HashSet<String>> = Lazy::new(|| {
|
||||
+1
-1
@@ -2,7 +2,7 @@ use std::collections::HashSet;
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
const TERMS: &str = include_str!("../../../../../../includes/binary_includes/safety/dictionary_potential_minor_terms.txt");
|
||||
const TERMS: &str = include_str!("../../../../../../../includes/binary_includes/safety/dictionary_potential_minor_terms.txt");
|
||||
|
||||
pub (crate) fn contains_potential_minor_keyword(prompt_tokens: &[String]) -> bool {
|
||||
static TERM_DICTIONARY: Lazy<HashSet<String>> = Lazy::new(|| {
|
||||
+1
-1
@@ -2,7 +2,7 @@ use std::collections::HashSet;
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
const TERMS : &str = include_str!("../../../../../../includes/binary_includes/safety/dictionary_racist_terms.txt");
|
||||
const TERMS : &str = include_str!("../../../../../../../includes/binary_includes/safety/dictionary_racist_terms.txt");
|
||||
|
||||
pub (crate) fn contains_racist_keyword(prompt_tokens: &[String]) -> bool {
|
||||
static TERM_DICTIONARY : Lazy<HashSet<String>> = Lazy::new(|| {
|
||||
+1
-1
@@ -2,7 +2,7 @@ use std::collections::HashSet;
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
const TERMS : &str = include_str!("../../../../../../includes/binary_includes/safety/dictionary_sex_terms.txt");
|
||||
const TERMS : &str = include_str!("../../../../../../../includes/binary_includes/safety/dictionary_sex_terms.txt");
|
||||
pub (crate) fn contains_sex_keyword(prompt_tokens: &[String]) -> bool {
|
||||
static TERM_DICTIONARY : Lazy<HashSet<String>> = Lazy::new(|| {
|
||||
TERMS.lines()
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -18,10 +18,10 @@ normal = ["workspace-build-acceleration"]
|
||||
[dependencies]
|
||||
|
||||
# Internal
|
||||
errors = { path = "../errors" }
|
||||
filesys = { path = "../files/filesys" }
|
||||
errors = { path = "../../errors" }
|
||||
filesys = { path = "../../files/filesys" }
|
||||
|
||||
workspace-build-acceleration = { version = "0.1", path = "../../workspace-build-acceleration" }
|
||||
workspace-build-acceleration = { version = "0.1", path = "../../../workspace-build-acceleration" }
|
||||
|
||||
# External
|
||||
log = "0.4.14"
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -37,7 +37,7 @@ mimetypes.workspace = true
|
||||
mysql_queries = { path = "../../../../schema/database/mysql_queries" }
|
||||
reusable_types = { path = "../../../../schema/public/reusable_types" }
|
||||
storyteller_root = { path = "../../../../lib/storyteller_root" }
|
||||
subprocess_common = { path = "../../../../lib/subprocess_common" }
|
||||
subprocess_common = { path = "../../../../lib/deprecated/subprocess_common" }
|
||||
tokens.workspace = true
|
||||
|
||||
# External
|
||||
|
||||
@@ -45,7 +45,7 @@ mysql_queries = { path = "../../../../schema/database/mysql_queries" }
|
||||
primitives.workspace = true
|
||||
redis_common = { path = "../../../../schema/database/redis_common" }
|
||||
redis_schema = { path = "../../../../schema/database/redis_schema" }
|
||||
subprocess_common = { path = "../../../../lib/subprocess_common" }
|
||||
subprocess_common = { path = "../../../../lib/deprecated/subprocess_common" }
|
||||
thumbnail_generator = { path = "../../../../api_clients/thumbnail_generator"}
|
||||
tokens.workspace = true
|
||||
tts_common = { path = "../../../../lib/deprecated/tts_common" }
|
||||
|
||||
@@ -67,7 +67,7 @@ mimetypes.workspace = true
|
||||
mysql_queries.workspace = true
|
||||
password = { path = "../../../lib/password" }
|
||||
primitives = { path = "../../../lib/data/primitives" }
|
||||
prompt_engineering = { path = "../../../lib/machine_learning/prompt_engineering" }
|
||||
prompt_engineering = { path = "../../../lib/deprecated/machine_learning/prompt_engineering" }
|
||||
redis_caching = { path = "../../../lib/caching/redis_caching" }
|
||||
redis_common = { path = "../../../schema/database/redis_common" }
|
||||
redis_schema = { path = "../../../schema/database/redis_schema" }
|
||||
|
||||
Reference in new issue
Block a user