multimodalart HF staff commited on
Commit
e550a6d
·
verified ·
1 Parent(s): b1dc0ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"],