Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ torch.cuda.empty_cache()
|
|
| 12 |
|
| 13 |
def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed):
|
| 14 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
| 15 |
-
|
| 16 |
if Model == "PhotoReal":
|
| 17 |
torch.cuda.empty_cache()
|
| 18 |
pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1", torch_dtype=torch.float16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1")
|
|
|
|
| 12 |
|
| 13 |
def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed):
|
| 14 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
| 15 |
+
progress=gr.Progress(track_tqdm=True)
|
| 16 |
if Model == "PhotoReal":
|
| 17 |
torch.cuda.empty_cache()
|
| 18 |
pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1", torch_dtype=torch.float16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1")
|