From 302a52a53bb8fb7079193afa4f3c377a992224cc Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Fri, 2 Feb 2024 11:28:12 +0100 Subject: [PATCH] fix: added date to result file name --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2ae3f43..2fb34da 100755 --- a/main.py +++ b/main.py @@ -4,9 +4,11 @@ from llama_cpp import Llama from bs4 import BeautifulSoup import requests import json +from datetime import datetime -OUTPUT_FILE = "results.json" +current_date = datetime.now().strftime("%Y-%m-%d_%H-%M") +OUTPUT_FILE = f"results_{current_date}.json" EXAMPLES = [