Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str
|
|
| 101 |
if not negative:
|
| 102 |
negative = ""
|
| 103 |
return p.replace("{prompt}", positive), n + negative
|
| 104 |
-
|
| 105 |
def load_and_prepare_model(model_id):
|
| 106 |
model_dtypes = {"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,}
|
| 107 |
dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
|
|
|
|
| 101 |
if not negative:
|
| 102 |
negative = ""
|
| 103 |
return p.replace("{prompt}", positive), n + negative
|
| 104 |
+
|
| 105 |
def load_and_prepare_model(model_id):
|
| 106 |
model_dtypes = {"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,}
|
| 107 |
dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
|