Oranblock commited on
Commit
32e08c5
1 Parent(s): 84ce0b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,12 +79,12 @@ def initialize_pipeline(device_type):
79
  "SG161222/RealVisXL_V3.0_Turbo",
80
  torch_dtype=torch.float32 if device_type == "cpu" else torch.float16,
81
  use_safetensors=True,
82
- variant="fp32" if device_type == "cpu" else "fp16"
83
  ).to(device)
84
 
85
  # Initialize with CPU by default
86
  initialize_pipeline("cpu")
87
 
 
88
  # Convert mm to pixels for a specific DPI (300) and ensure divisible by 8
89
  def mm_to_pixels(mm, dpi=300):
90
  """Convert mm to pixels and make the dimensions divisible by 8."""
 
79
  "SG161222/RealVisXL_V3.0_Turbo",
80
  torch_dtype=torch.float32 if device_type == "cpu" else torch.float16,
81
  use_safetensors=True,
 
82
  ).to(device)
83
 
84
  # Initialize with CPU by default
85
  initialize_pipeline("cpu")
86
 
87
+
88
  # Convert mm to pixels for a specific DPI (300) and ensure divisible by 8
89
  def mm_to_pixels(mm, dpi=300):
90
  """Convert mm to pixels and make the dimensions divisible by 8."""