Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -291,6 +291,10 @@ def get_all_articles(category):
|
|
291 |
except Exception as e:
|
292 |
logger.error(f"Error fetching all articles for category {category}: {e}")
|
293 |
return jsonify({"articles": [], "category": category}), 500
|
|
|
|
|
|
|
294 |
|
|
|
295 |
if __name__ == "__main__":
|
296 |
app.run(host="0.0.0.0", port=7860)
|
|
|
291 |
except Exception as e:
|
292 |
logger.error(f"Error fetching all articles for category {category}: {e}")
|
293 |
return jsonify({"articles": [], "category": category}), 500
|
294 |
+
@app.route('/card')
|
295 |
+
def card_load():
|
296 |
+
return render_template("card.html")
|
297 |
|
298 |
+
|
299 |
if __name__ == "__main__":
|
300 |
app.run(host="0.0.0.0", port=7860)
|