Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import numpy as np
|
4 |
-
|
5 |
from PIL import Image
|
6 |
from huggingface_hub import hf_hub_download
|
7 |
from diffusers import StableDiffusion3Pipeline
|
@@ -10,7 +10,7 @@ device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
|
10 |
torch.cuda.max_memory_allocated(device=device)
|
11 |
torch.cuda.empty_cache()
|
12 |
SD3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16).to(device)
|
13 |
-
|
14 |
|
15 |
def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
|
16 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import numpy as np
|
4 |
+
import modin.pandas as pd
|
5 |
from PIL import Image
|
6 |
from huggingface_hub import hf_hub_download
|
7 |
from diffusers import StableDiffusion3Pipeline
|
|
|
10 |
torch.cuda.max_memory_allocated(device=device)
|
11 |
torch.cuda.empty_cache()
|
12 |
SD3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16).to(device)
|
13 |
+
|
14 |
|
15 |
def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
|
16 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|