alexeyGod commited on
Commit
2d71825
·
verified ·
1 Parent(s): 0613b31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -17,6 +17,12 @@ login(token=a )
17
 
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
  model_repo_id = "stabilityai/sdxl-turbo" # "stable-diffusion-v1-5/stable-diffusion-v1-5" # Replace to the model you would like to use
 
 
 
 
 
 
20
 
21
  if torch.cuda.is_available():
22
  torch_dtype = torch.float16
@@ -131,7 +137,7 @@ with gr.Blocks(css=css) as demo:
131
  minimum=0.0,
132
  maximum=10.0,
133
  step=0.1,
134
- value=3.6, # Replace with defaults that work for your model
135
  )
136
 
137
  num_inference_steps = gr.Slider(
@@ -139,7 +145,7 @@ with gr.Blocks(css=css) as demo:
139
  minimum=1,
140
  maximum=50,
141
  step=1,
142
- value=5, # Replace with defaults that work for your model
143
  )
144
 
145
  gr.Examples(examples=examples, inputs=[prompt])
 
17
 
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
  model_repo_id = "stabilityai/sdxl-turbo" # "stable-diffusion-v1-5/stable-diffusion-v1-5" # Replace to the model you would like to use
20
+ pipe.load_lora_weights("NazarAnarchist/Metrocop-HL2")
21
+
22
+
23
+
24
+
25
+
26
 
27
  if torch.cuda.is_available():
28
  torch_dtype = torch.float16
 
137
  minimum=0.0,
138
  maximum=10.0,
139
  step=0.1,
140
+ value=0.0, # Replace with defaults that work for your model
141
  )
142
 
143
  num_inference_steps = gr.Slider(
 
145
  minimum=1,
146
  maximum=50,
147
  step=1,
148
+ value=3, # Replace with defaults that work for your model
149
  )
150
 
151
  gr.Examples(examples=examples, inputs=[prompt])