Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from random import randint
|
3 |
from all_models import models
|
4 |
-
import torch
|
5 |
-
import os
|
6 |
-
|
7 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = "" # Отключаем CUDA
|
8 |
-
|
9 |
-
|
10 |
-
device = "cpu" # Используем CPU
|
11 |
-
model_repo_id = "stabilityai/sdxl-turbo"
|
12 |
-
|
13 |
-
torch_dtype = torch.float32 # Тип данных для CPU
|
14 |
|
15 |
|
16 |
|
|
|
1 |
import gradio as gr
|
2 |
from random import randint
|
3 |
from all_models import models
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
|