Spaces:
Running
Running
Commit
•
c52b2b1
1
Parent(s):
4577b50
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,11 @@ def extract_info(json_data):
|
|
72 |
"description": json_data["description"],
|
73 |
"trainedWords": model_version["trainedWords"],
|
74 |
"creator": json_data["creator"]["username"],
|
75 |
-
"tags": json_data["tags"]
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
return info
|
78 |
return None
|
@@ -139,6 +143,8 @@ def create_readme(info, downloaded_files, link_civit=False, is_author=True, fold
|
|
139 |
|
140 |
content = f"""---
|
141 |
license: other
|
|
|
|
|
142 |
tags:
|
143 |
- {unpacked_tags}
|
144 |
|
|
|
72 |
"description": json_data["description"],
|
73 |
"trainedWords": model_version["trainedWords"],
|
74 |
"creator": json_data["creator"]["username"],
|
75 |
+
"tags": json_data["tags"],
|
76 |
+
"allowNoCredit": json_data["allowNoCredit"],
|
77 |
+
"allowCommercialUse": json_data["allowCommercialUse"],
|
78 |
+
"allowDerivatives": json_data["allowDerivatives"],
|
79 |
+
"allowDifferentLicense": json_data["allowDifferentLicense"]
|
80 |
}
|
81 |
return info
|
82 |
return None
|
|
|
143 |
|
144 |
content = f"""---
|
145 |
license: other
|
146 |
+
license_name: bespoke-lora-trained-license
|
147 |
+
license_link: https://multimodal.art/civitai-licenses?allowNoCredit={info["allowNoCredit"]}&allowCommercialUse={info["allowCommercialUse"]}&allowDerivatives={info["allowDerivatives"]}&allowDifferentLicense={info["allowDifferentLicense"]}
|
148 |
tags:
|
149 |
- {unpacked_tags}
|
150 |
|