Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -397,6 +397,8 @@ else:
|
|
397 |
desc_en = metadata.get("description.en", "").strip()
|
398 |
desc_de = metadata.get("description.de", "").strip()
|
399 |
description = desc_en if desc_en != "" else desc_de
|
|
|
|
|
400 |
full_snippet = f"{description}"
|
401 |
words = full_snippet.split()
|
402 |
preview_word_count = 90
|
@@ -476,6 +478,8 @@ else:
|
|
476 |
desc_en = metadata.get("description.en", "").strip()
|
477 |
desc_de = metadata.get("description.de", "").strip()
|
478 |
description = desc_en if desc_en != "" else desc_de
|
|
|
|
|
479 |
full_snippet = f"{description}"
|
480 |
words = full_snippet.split()
|
481 |
preview_word_count = 90
|
|
|
397 |
desc_en = metadata.get("description.en", "").strip()
|
398 |
desc_de = metadata.get("description.de", "").strip()
|
399 |
description = desc_en if desc_en != "" else desc_de
|
400 |
+
if not description:
|
401 |
+
description = "No project description available"
|
402 |
full_snippet = f"{description}"
|
403 |
words = full_snippet.split()
|
404 |
preview_word_count = 90
|
|
|
478 |
desc_en = metadata.get("description.en", "").strip()
|
479 |
desc_de = metadata.get("description.de", "").strip()
|
480 |
description = desc_en if desc_en != "" else desc_de
|
481 |
+
if not description:
|
482 |
+
description = "No project description available"
|
483 |
full_snippet = f"{description}"
|
484 |
words = full_snippet.split()
|
485 |
preview_word_count = 90
|