update
Browse files
app.py
CHANGED
@@ -39,7 +39,10 @@ def make_clickable_model(model_name, link=None):
|
|
39 |
#adding functionality for demo
|
40 |
user_model_nm = model_name.split('/')[-1]
|
41 |
print(f"user and model name is - {user_model_nm}")
|
42 |
-
|
|
|
|
|
|
|
43 |
print(f"model name is - {model_nm}")
|
44 |
prompt = "a photo of " + model_nm + str(prompt)
|
45 |
pipeline = StableDiffusionPipeline.from_pretrained(model_name) #("ashiqabdulkhader/shiba-dog") #('pharma/sugar-glider')
|
|
|
39 |
#adding functionality for demo
|
40 |
user_model_nm = model_name.split('/')[-1]
|
41 |
print(f"user and model name is - {user_model_nm}")
|
42 |
+
if '-' in user_model_nm:
|
43 |
+
model_nm = " ".join(user_model_nm.split('-'))
|
44 |
+
else:
|
45 |
+
model_nm = user_model_nm
|
46 |
print(f"model name is - {model_nm}")
|
47 |
prompt = "a photo of " + model_nm + str(prompt)
|
48 |
pipeline = StableDiffusionPipeline.from_pretrained(model_name) #("ashiqabdulkhader/shiba-dog") #('pharma/sugar-glider')
|