Spaces:
Runtime error
Runtime error
Commit
·
9884400
1
Parent(s):
cf8f463
Created dict for results
Browse files
app.py
CHANGED
@@ -77,18 +77,19 @@ def recommend_games(
|
|
77 |
designers_str = row["designers_list"]
|
78 |
|
79 |
#caption = f"{row['name']} by {designers_str} for {row['players']} players. Type: {row['type']} Rating: {row['rating']}\n {truncated_description}"
|
80 |
-
caption = {
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
}
|
90 |
-
|
91 |
-
results.append(caption) #"cover-not-found.jpg"
|
|
|
92 |
#print(len(results))
|
93 |
return results
|
94 |
|
|
|
77 |
designers_str = row["designers_list"]
|
78 |
|
79 |
#caption = f"{row['name']} by {designers_str} for {row['players']} players. Type: {row['type']} Rating: {row['rating']}\n {truncated_description}"
|
80 |
+
# caption = {
|
81 |
+
# "name":row['name'],
|
82 |
+
# "designers":designers_str,
|
83 |
+
# "players":row['players'],
|
84 |
+
# "type": row['type'],
|
85 |
+
# "rating":row['rating'],
|
86 |
+
# "small_description": truncated_description,
|
87 |
+
# "description": description,
|
88 |
+
# "thumbnail":row["thumbnail_url"]
|
89 |
+
# }
|
90 |
+
caption = f"{row['name']}|{designers_str}|{row['players']}|{row['type']}|{row['rating']}|{truncated_description}|{description}"
|
91 |
+
results.append((row["thumbnail_url"],caption)) #"cover-not-found.jpg"
|
92 |
+
# results.append(caption) #"cover-not-found.jpg"
|
93 |
#print(len(results))
|
94 |
return results
|
95 |
|