mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 23:26:02 +00:00
always send event for now
This commit is contained in:
1 parent
f783910c0a
commit
68b0acf8ed
1 file changed
+4
-2
@@ -132,7 +132,8 @@ pub fn stable_diffusion_pipeline(args: Args<'_>) -> Result<RgbImage> {
|
||||
println!("Building VAE model from file {:?}...", &vae_file);
|
||||
|
||||
let mut notify_download_complete = false;
|
||||
if !vae_file.exists() {
|
||||
//if !vae_file.exists() {
|
||||
if true {
|
||||
notify_download_complete = true;
|
||||
app.emit("notification", NotificationEvent::ModelDownloadStarted {
|
||||
model_name: repo,
|
||||
@@ -175,7 +176,8 @@ pub fn stable_diffusion_pipeline(args: Args<'_>) -> Result<RgbImage> {
|
||||
.map_err(|err| anyhow!("error fetching model: {:?}", err))?;
|
||||
|
||||
let mut notify_download_complete = false;
|
||||
if !unet_file.exists() {
|
||||
//if !unet_file.exists() {
|
||||
if true {
|
||||
notify_download_complete = true;
|
||||
app.emit("notification", NotificationEvent::ModelDownloadStarted {
|
||||
model_name: repo,
|
||||
|
||||
Reference in new issue
Block a user