i0switch commited on
Commit
6c91c2c
Β·
verified Β·
1 Parent(s): df4d548

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -13,7 +13,6 @@ mod.rgb_to_grayscale = F.rgb_to_grayscale
13
  sys.modules["torchvision.transforms.functional_tensor"] = mod
14
  # ---------------------------------------------------------------------------
15
 
16
-
17
  import os, subprocess, cv2, torch, spaces, gradio as gr, numpy as np
18
  from pathlib import Path
19
  from PIL import Image
@@ -185,12 +184,9 @@ except Exception as e:
185
  # 4. γƒ—γƒ­γƒ³γƒ—γƒˆ & η”Ÿζˆι–’ζ•°
186
  ##############################################################################
187
  BASE_PROMPT = (
188
- "(masterpiece:1.2), best quality, ultra-realistic, RAW photo, 8k,\n"
189
- "photo of {subject},\n"
190
- "cinematic lighting, golden hour, rim light, shallow depth of field,\n"
191
- "textured skin, high detail, shot on Canon EOS R5, 85 mm f/1.4, ISO 200,\n"
192
- "<lora:ip-adapter-faceid-plusv2_sd15_lora:0.65>, (face),\n"
193
- "(aesthetic:1.1), (cinematic:0.8)"
194
  )
195
  NEG_PROMPT = (
196
  "ng_deepnegative_v1_75t, CyberRealistic_Negative-neg, UnrealisticDream, "
@@ -272,4 +268,4 @@ with gr.Blocks() as demo:
272
  )
273
 
274
  print("launching …")
275
- demo.queue().launch(show_error=True)
 
13
  sys.modules["torchvision.transforms.functional_tensor"] = mod
14
  # ---------------------------------------------------------------------------
15
 
 
16
  import os, subprocess, cv2, torch, spaces, gradio as gr, numpy as np
17
  from pathlib import Path
18
  from PIL import Image
 
184
  # 4. γƒ—γƒ­γƒ³γƒ—γƒˆ & η”Ÿζˆι–’ζ•°
185
  ##############################################################################
186
  BASE_PROMPT = (
187
+ "masterpiece, ultra-realistic photo of {subject}, "
188
+ "cinematic lighting, shallow depth of field, textured skin, "
189
+ "Canon EOS R5 85 mm f/1.4, <lora:ip-adapter-faceid-plusv2_sd15_lora:0.65>"
 
 
 
190
  )
191
  NEG_PROMPT = (
192
  "ng_deepnegative_v1_75t, CyberRealistic_Negative-neg, UnrealisticDream, "
 
268
  )
269
 
270
  print("launching …")
271
+ demo.queue().launch(show_error=True)