Spaces:
Runtime error
Runtime error
rynmurdock
commited on
Commit
•
536643c
1
Parent(s):
2395d0a
hmm
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ from sklearn.svm import SVC
|
|
25 |
from sklearn.inspection import permutation_importance
|
26 |
from sklearn import preprocessing
|
27 |
import pandas as pd
|
28 |
-
|
29 |
import sched
|
30 |
import threading
|
31 |
|
@@ -478,12 +478,12 @@ Explore the latent space without text prompts based on your preferences. Learn m
|
|
478 |
log = logging.getLogger('log_here')
|
479 |
log.setLevel(logging.ERROR)
|
480 |
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
|
485 |
-
thread = threading.Thread(target=background_next_image,)
|
486 |
-
thread.start()
|
487 |
|
488 |
def encode_space(x):
|
489 |
im_emb, _ = pipe.encode_image(
|
|
|
25 |
from sklearn.inspection import permutation_importance
|
26 |
from sklearn import preprocessing
|
27 |
import pandas as pd
|
28 |
+
from apscheduler.schedulers.background import BackgroundScheduler
|
29 |
import sched
|
30 |
import threading
|
31 |
|
|
|
478 |
log = logging.getLogger('log_here')
|
479 |
log.setLevel(logging.ERROR)
|
480 |
|
481 |
+
scheduler = BackgroundScheduler()
|
482 |
+
scheduler.add_job(func=background_next_image, trigger="interval", seconds=.1)
|
483 |
+
scheduler.start()
|
484 |
|
485 |
+
#thread = threading.Thread(target=background_next_image,)
|
486 |
+
#thread.start()
|
487 |
|
488 |
def encode_space(x):
|
489 |
im_emb, _ = pipe.encode_image(
|