Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,6 +150,7 @@ def enable_best_attention_backend(pipeline):
|
|
| 150 |
pipeline.transformer.set_attention_backend(backend)
|
| 151 |
print(f"✅ Attention backend set to: {backend}")
|
| 152 |
enabled = True
|
|
|
|
| 153 |
except Exception as e:
|
| 154 |
pass
|
| 155 |
|
|
|
|
| 150 |
pipeline.transformer.set_attention_backend(backend)
|
| 151 |
print(f"✅ Attention backend set to: {backend}")
|
| 152 |
enabled = True
|
| 153 |
+
break
|
| 154 |
except Exception as e:
|
| 155 |
pass
|
| 156 |
|