attilasimko commited on
Commit
85e6b06
·
1 Parent(s): 4a83552
Files changed (1) hide show
  1. evaluations/repo_evaluations.py +4 -3
evaluations/repo_evaluations.py CHANGED
@@ -42,9 +42,10 @@ def evaluate(llm, verbose, repo_url, title=None, year=None):
42
  zip = zipfile.ZipFile(repository_zip_name)
43
  readme = fetch_readme(zip)
44
 
45
- if ((readme != "") & (llm)):
46
- summary = llm.predict("HELP", f"{readme}\nBased on the readme file above can you give a quick summary of this repository?")
47
- log(verbose, "LOG", f"Summary: {summary}")
 
48
 
49
  results["pred_stars"] = fetch_repo_stars(verbose, repo_url, token)
50
 
 
42
  zip = zipfile.ZipFile(repository_zip_name)
43
  readme = fetch_readme(zip)
44
 
45
+ if (llm):
46
+ if (readme != ""):
47
+ summary = llm.predict("HELP", f"{readme}\nBased on the readme file above can you give a quick summary of this repository?")
48
+ log(verbose, "LOG", f"Summary: {summary}")
49
 
50
  results["pred_stars"] = fetch_repo_stars(verbose, repo_url, token)
51