Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,6 @@ except Exception as e: print(f"Błąd ładowania LLM: {e}"); text_generator = No
|
|
| 62 |
|
| 63 |
try:
|
| 64 |
print("Ładowanie modelu obrazkowego...")
|
| 65 |
-
# POPRAWKA: Usunięto `torch_dtype=torch.float16` aby zapewnić kompatybilność z CPU.
|
| 66 |
image_generator = DiffusionPipeline.from_pretrained(IMAGE_MODEL)
|
| 67 |
image_generator.to(device)
|
| 68 |
IMAGE_MODEL_LOADED = True
|
|
|
|
| 62 |
|
| 63 |
try:
|
| 64 |
print("Ładowanie modelu obrazkowego...")
|
|
|
|
| 65 |
image_generator = DiffusionPipeline.from_pretrained(IMAGE_MODEL)
|
| 66 |
image_generator.to(device)
|
| 67 |
IMAGE_MODEL_LOADED = True
|