Spaces:
Paused
Paused
Commit
•
49f1f69
1
Parent(s):
114e952
Update app.py
Browse files
app.py
CHANGED
@@ -51,11 +51,11 @@ def update_selection(selected_state: gr.SelectData):
|
|
51 |
updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
|
52 |
is_compatible = sdxl_loras[selected_state.index]["is_compatible"]
|
53 |
|
54 |
-
use_with_diffusers = f
|
55 |
## Using [`{lora_repo}`](https://huggingface.co/{lora_repo})
|
56 |
|
57 |
## Use it with diffusers:
|
58 |
-
|
59 |
if is_compatible:
|
60 |
use_with_diffusers += f'''
|
61 |
```python
|
@@ -74,9 +74,7 @@ def update_selection(selected_state: gr.SelectData):
|
|
74 |
```
|
75 |
'''
|
76 |
else:
|
77 |
-
use_with_diffusers +=
|
78 |
-
This LoRA is not compatible with diffusers natively yet. But you can still use it on diffusers with `bmaltais/kohya_ss` LoRA class, check out this [Google Colab](https://colab.research.google.com/drive/14aEJsKdEQ9_kyfsiV6JDok799kxPul0j )
|
79 |
-
'''
|
80 |
|
81 |
use_with_uis = f'''
|
82 |
## Use it with Comfy UI, Invoke AI, SD.Next, AUTO1111:
|
|
|
51 |
updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
|
52 |
is_compatible = sdxl_loras[selected_state.index]["is_compatible"]
|
53 |
|
54 |
+
use_with_diffusers = f'''
|
55 |
## Using [`{lora_repo}`](https://huggingface.co/{lora_repo})
|
56 |
|
57 |
## Use it with diffusers:
|
58 |
+
'''
|
59 |
if is_compatible:
|
60 |
use_with_diffusers += f'''
|
61 |
```python
|
|
|
74 |
```
|
75 |
'''
|
76 |
else:
|
77 |
+
use_with_diffusers += "This LoRA is not compatible with diffusers natively yet. But you can still use it on diffusers with `bmaltais/kohya_ss` LoRA class, check out this [Google Colab](https://colab.research.google.com/drive/14aEJsKdEQ9_kyfsiV6JDok799kxPul0j )"
|
|
|
|
|
78 |
|
79 |
use_with_uis = f'''
|
80 |
## Use it with Comfy UI, Invoke AI, SD.Next, AUTO1111:
|