Spaces:
Sleeping
Sleeping
pass security os
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
import torch
|
|
|
4 |
from diffusers import AutoPipelineForText2Image,DEISMultistepScheduler
|
5 |
|
6 |
pipe = AutoPipelineForText2Image.from_pretrained('Lykon/AAM_XL_AnimeMix', torch_dtype=torch.float16, variant="fp16")
|
@@ -16,4 +17,4 @@ demo = gr.Interface(
|
|
16 |
inputs='text',
|
17 |
outputs= 'image',
|
18 |
)
|
19 |
-
demo.launch(auth=(
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
import torch
|
4 |
+
import os
|
5 |
from diffusers import AutoPipelineForText2Image,DEISMultistepScheduler
|
6 |
|
7 |
pipe = AutoPipelineForText2Image.from_pretrained('Lykon/AAM_XL_AnimeMix', torch_dtype=torch.float16, variant="fp16")
|
|
|
17 |
inputs='text',
|
18 |
outputs= 'image',
|
19 |
)
|
20 |
+
demo.launch(auth=(os.getenv('USER'), os.getenv('PASSWORD')))
|