Spaces:
Sleeping
Sleeping
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files49 unmodified lines505152535354555649 unmodified lines
# Format the top 3 space news articles formatted_news = "\n\n".join( [f"๐ฐ **{article.get('title', 'Untitled')}**\n๐ [Read More]({article.get('url', '#'}) )" for article in news_results[:3]] [f"๐ฐ **{article.get('title', 'Untitled')}**\n๐ [Read More]({article.get('url', '#')})" for article in news_results[:3]] )
return {"output": f"๐ **Latest Space News:**\n\n{formatted_news}"}app.py+1-1