Spaces:
Runtime error
Runtime error
prithivMLmods
commited on
Commit
•
59f2b56
1
Parent(s):
ba4c9d6
Update app.py
Browse files
app.py
CHANGED
@@ -557,8 +557,10 @@ def get_huggingface_safetensors(link):
|
|
557 |
base_model = model_card.data.get("base_model")
|
558 |
print(base_model)
|
559 |
|
|
|
560 |
if((base_model != "black-forest-labs/FLUX.1-dev") and (base_model != "black-forest-labs/FLUX.1-schnell")):
|
561 |
raise Exception("Flux LoRA Not Found!")
|
|
|
562 |
# Only allow "black-forest-labs/FLUX.1-dev"
|
563 |
#if base_model != "black-forest-labs/FLUX.1-dev":
|
564 |
#raise Exception("Only FLUX.1-dev is supported, other LoRA models are not allowed!")
|
|
|
557 |
base_model = model_card.data.get("base_model")
|
558 |
print(base_model)
|
559 |
|
560 |
+
#Allows Both
|
561 |
if((base_model != "black-forest-labs/FLUX.1-dev") and (base_model != "black-forest-labs/FLUX.1-schnell")):
|
562 |
raise Exception("Flux LoRA Not Found!")
|
563 |
+
|
564 |
# Only allow "black-forest-labs/FLUX.1-dev"
|
565 |
#if base_model != "black-forest-labs/FLUX.1-dev":
|
566 |
#raise Exception("Only FLUX.1-dev is supported, other LoRA models are not allowed!")
|