Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def extract_info(json_data):
|
|
74 |
"modelId": model_version.get("modelId", ""),
|
75 |
"name": json_data["name"],
|
76 |
"description": json_data["description"],
|
77 |
-
"trainedWords": model_version["trainedWords"],
|
78 |
"creator": json_data["creator"]["username"],
|
79 |
"tags": json_data["tags"],
|
80 |
"allowNoCredit": json_data["allowNoCredit"],
|
|
|
74 |
"modelId": model_version.get("modelId", ""),
|
75 |
"name": json_data["name"],
|
76 |
"description": json_data["description"],
|
77 |
+
"trainedWords": model_version["trainedWords"] if "trainedWords" in model_version else [],
|
78 |
"creator": json_data["creator"]["username"],
|
79 |
"tags": json_data["tags"],
|
80 |
"allowNoCredit": json_data["allowNoCredit"],
|