rebrand to Uncensored AI Studio and implement automated backend build scripts and multi-platform setup utilities
This commit is contained in:
1 parent
ba87eb8757
commit
eda6c7bd5d
13 files changed
+197
-151
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Local AI Image Generator - Compile backends from source
|
||||
# Uncensored AI Studio - Compile backends from source
|
||||
# For Linux systems with GLIBC < 2.38 or macOS systems that need a local Metal build.
|
||||
#
|
||||
|
||||
@@ -21,7 +21,7 @@ JOBS="$(getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null |
|
||||
# Pinned release tag
|
||||
PINNED_TAG="master-685-19bdfe2"
|
||||
|
||||
echo "=== Local AI Image Generator - Build from Source ==="
|
||||
echo "=== Uncensored AI Studio - Build from Source ==="
|
||||
echo "Target directories:"
|
||||
echo " CPU Backend -> $BACKEND_DIR/cpu"
|
||||
echo " Vulkan Backend -> $BACKEND_DIR/vulkan"
|
||||
|
||||
@@ -1548,7 +1548,7 @@ function getPathInfo(label, targetPath, type = "file") {
|
||||
function isDirWritable(dirPath) {
|
||||
try {
|
||||
fs.mkdirSync(dirPath, { recursive: true });
|
||||
const testFile = path.join(dirPath, `.local-ai-image-generator-write-test-${Date.now()}.tmp`);
|
||||
const testFile = path.join(dirPath, `.uncensored-ai-studio-write-test-${Date.now()}.tmp`);
|
||||
fs.writeFileSync(testFile, "ok", "utf8");
|
||||
fs.unlinkSync(testFile);
|
||||
return true;
|
||||
@@ -3267,7 +3267,7 @@ function requestHttpsJson(url, timeoutMs = 30000) {
|
||||
const req = https.get(url, {
|
||||
headers: {
|
||||
"Accept": "application/json",
|
||||
"User-Agent": "Local-AI-Image-Generator/1.0",
|
||||
"User-Agent": "Uncensored-AI-Studio/1.0",
|
||||
},
|
||||
timeout: timeoutMs,
|
||||
}, (res) => {
|
||||
@@ -4714,7 +4714,7 @@ function startImageBackendDownload(backendId, redirectCount = 0, redirectUrl = "
|
||||
const client = url.startsWith("https") ? https : http;
|
||||
const request = client.get(url, {
|
||||
headers: {
|
||||
"User-Agent": "Local-AI-Image-Generator/1.0 (+https://github.com/techjarves/Local-AI-Image-Generator)",
|
||||
"User-Agent": "Uncensored-AI-Studio/1.0 (+https://github.com/techjarves/Uncensored-AI-Studio)",
|
||||
"Accept": "application/zip, application/octet-stream, */*",
|
||||
},
|
||||
}, (response) => {
|
||||
@@ -4911,7 +4911,7 @@ function startModelDownload(url, overrideFilename = null, targetDir = MODELS, ki
|
||||
const client = url.startsWith("https") ? https : http;
|
||||
const request = client.get(url, {
|
||||
headers: {
|
||||
"User-Agent": "Local-AI-Image-Generator/1.0 (+https://github.com/techjarves/Local-AI-Image-Generator)",
|
||||
"User-Agent": "Uncensored-AI-Studio/1.0 (+https://github.com/techjarves/Uncensored-AI-Studio)",
|
||||
"Accept": "application/octet-stream, application/x-safetensors, */*",
|
||||
"Referer": "https://huggingface.co/",
|
||||
},
|
||||
@@ -6741,7 +6741,7 @@ server.timeout = 0; // Disable socket timeout for large model uploads/downloads
|
||||
server.listen(PORT_FRONTEND, "0.0.0.0", () => {
|
||||
console.log("");
|
||||
console.log(" ============================================================");
|
||||
console.log(" LOCAL AI IMAGE GENERATOR | Running");
|
||||
console.log(" UNCENSORED AI STUDIO | Running");
|
||||
console.log(" Server Build: " + SERVER_BUILD);
|
||||
console.log(" Frontend : http://localhost:" + PORT_FRONTEND);
|
||||
console.log(" Image API: http://127.0.0.1:" + PORT_BACKEND);
|
||||
|
||||
@@ -44,7 +44,7 @@ coreml_venv_ready() {
|
||||
|
||||
echo ""
|
||||
echo " ============================================================"
|
||||
echo " Local AI Image Generator - Apple Silicon CoreML NPU Setup"
|
||||
echo " Uncensored AI Studio - Apple Silicon CoreML NPU Setup"
|
||||
echo " ============================================================"
|
||||
echo ""
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ function Download-File {
|
||||
Enable-Tls12
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $Dest) | Out-Null
|
||||
$client = New-Object System.Net.WebClient
|
||||
$client.Headers.Add("User-Agent", "Local-AI-Image-Generator-Setup")
|
||||
$client.Headers.Add("User-Agent", "Uncensored-AI-Studio-Setup")
|
||||
$client.DownloadFile($Url, $Dest)
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ function Ensure-PortablePython {
|
||||
|
||||
Write-Host ""
|
||||
Write-Host " ============================================================"
|
||||
Write-Host " Local AI Image Generator - OpenVINO NPU Setup"
|
||||
Write-Host " Uncensored AI Studio - OpenVINO NPU Setup"
|
||||
Write-Host " Portable Python runtime: app/tools/python-win"
|
||||
Write-Host " ============================================================"
|
||||
Write-Host ""
|
||||
|
||||
@@ -12,7 +12,7 @@ PYTHON_BIN="$VENV_DIR/bin/python"
|
||||
|
||||
echo ""
|
||||
echo " ============================================================"
|
||||
echo " Local AI Image Generator - Linux OpenVINO NPU Setup"
|
||||
echo " Uncensored AI Studio - Linux OpenVINO NPU Setup"
|
||||
echo " ============================================================"
|
||||
echo ""
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ function Download-File {
|
||||
Write-Host " >> Downloading $Label..."
|
||||
Enable-Tls12
|
||||
$client = New-Object System.Net.WebClient
|
||||
$client.Headers.Add("User-Agent", "Local-AI-Image-Generator")
|
||||
$client.Headers.Add("User-Agent", "Uncensored-AI-Studio")
|
||||
try {
|
||||
$client.DownloadFile($Url, $DestPath)
|
||||
} finally {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Local AI Image Generator - Setup Script
|
||||
# Uncensored AI Studio - Setup Script
|
||||
# scripts/setup/ lives under root, app/ is a root sibling of scripts/
|
||||
|
||||
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
@@ -15,7 +15,7 @@ $distDir = Join-Path $appDir "dist"
|
||||
function Print-Header {
|
||||
Write-Host ""
|
||||
Write-Host " ============================================================" -ForegroundColor Cyan
|
||||
Write-Host " LOCAL AI IMAGE GENERATOR - First-Time Setup" -ForegroundColor Cyan
|
||||
Write-Host " UNCENSORED AI STUDIO - First-Time Setup" -ForegroundColor Cyan
|
||||
Write-Host " 100% Self-Contained | No System Install Required" -ForegroundColor DarkCyan
|
||||
Write-Host " ============================================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
@@ -218,7 +218,7 @@ if (-not $nodeReady) {
|
||||
}
|
||||
|
||||
if (-not $nodeReady) {
|
||||
Print-Fail "Portable Node.js install is incomplete or corrupted. Close any running Local AI Image Generator windows, delete app/tools/node-win, then run setup again."
|
||||
Print-Fail "Portable Node.js install is incomplete or corrupted. Close any running Uncensored AI Studio windows, delete app/tools/node-win, then run setup again."
|
||||
Read-Host; exit 1
|
||||
}
|
||||
|
||||
@@ -511,7 +511,7 @@ Write-Host ""
|
||||
|
||||
if (-not (Test-Path $npmCmd)) {
|
||||
Print-Fail "npm.cmd was not found at $npmCmd"
|
||||
Print-Fail "Close any running Local AI Image Generator windows, delete app/tools/node-win, then run setup again."
|
||||
Print-Fail "Close any running Uncensored AI Studio windows, delete app/tools/node-win, then run setup again."
|
||||
Read-Host; exit 1
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Local AI Image Generator - Linux/macOS Setup Script
|
||||
# Uncensored AI Studio - Linux/macOS Setup Script
|
||||
# Self-contained: no apt/yum/pacman, no global Node.js install.
|
||||
#
|
||||
|
||||
@@ -67,7 +67,7 @@ fi
|
||||
print_header() {
|
||||
echo ""
|
||||
echo " ============================================================"
|
||||
echo " LOCAL AI IMAGE GENERATOR - $PLATFORM_LABEL First-Time Setup"
|
||||
echo " UNCENSORED AI STUDIO - $PLATFORM_LABEL First-Time Setup"
|
||||
echo " 100% Self-Contained | No System Install Required"
|
||||
echo " ============================================================"
|
||||
echo ""
|
||||
|
||||
Reference in new issue
Block a user