Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
c90c9ea
1
Parent(s):
91464a3
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
|
|
3 |
import json
|
4 |
import logging
|
5 |
import torch
|
|
|
6 |
from PIL import Image
|
7 |
import spaces
|
8 |
from diffusers import DiffusionPipeline, AutoPipelineForText2Image
|
@@ -10,7 +11,9 @@ from diffusers import StableDiffusion3Pipeline, FlowMatchEulerDiscreteScheduler,
|
|
10 |
import copy
|
11 |
import random
|
12 |
import time
|
13 |
-
from huggingface_hub import login
|
|
|
|
|
14 |
hf_token = os.environ.get("HF_TOKEN")
|
15 |
login(token=hf_token)
|
16 |
|
|
|
3 |
import json
|
4 |
import logging
|
5 |
import torch
|
6 |
+
from os import path
|
7 |
from PIL import Image
|
8 |
import spaces
|
9 |
from diffusers import DiffusionPipeline, AutoPipelineForText2Image
|
|
|
11 |
import copy
|
12 |
import random
|
13 |
import time
|
14 |
+
from huggingface_hub import login, hf_hub_download
|
15 |
+
import safetensors.torch
|
16 |
+
from safetensors.torch import load_file
|
17 |
hf_token = os.environ.get("HF_TOKEN")
|
18 |
login(token=hf_token)
|
19 |
|