Spaces:
Running
Running
Commit
•
13e678e
1
Parent(s):
a9e03ae
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import torch
|
3 |
from gradio_client import Client
|
4 |
-
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
|
5 |
-
if torch.cuda.is_available(): pipe.to("cuda")
|
6 |
client = Client("stabilityai/triposr")
|
7 |
sdxl = Client("hysts/SD-XL")
|
8 |
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from gradio_client import Client
|
|
|
|
|
3 |
client = Client("stabilityai/triposr")
|
4 |
sdxl = Client("hysts/SD-XL")
|
5 |
|