Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,8 @@ from diffusers import DiffusionPipeline
|
|
5 |
import torch
|
6 |
import time
|
7 |
import psutil
|
8 |
-
from huggingface_hub import snapshot_download
|
9 |
|
10 |
-
# ... (Other imports and variables remain the same)
|
11 |
|
12 |
def load_pipeline(model_id):
|
13 |
if model_id in PIPELINES:
|
@@ -21,9 +20,6 @@ def load_pipeline(model_id):
|
|
21 |
return pipe
|
22 |
|
23 |
|
24 |
-
# ... (Rest of your code remains the same)
|
25 |
-
|
26 |
-
|
27 |
# Get the number of physical CPU cores (excluding hyperthreads)
|
28 |
NUM_CPU_CORES = psutil.cpu_count(logical=True)
|
29 |
|
|
|
5 |
import torch
|
6 |
import time
|
7 |
import psutil
|
8 |
+
from huggingface_hub import snapshot_download
|
9 |
|
|
|
10 |
|
11 |
def load_pipeline(model_id):
|
12 |
if model_id in PIPELINES:
|
|
|
20 |
return pipe
|
21 |
|
22 |
|
|
|
|
|
|
|
23 |
# Get the number of physical CPU cores (excluding hyperthreads)
|
24 |
NUM_CPU_CORES = psutil.cpu_count(logical=True)
|
25 |
|