Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
85e6b06
1
Parent(s):
4a83552
...
Browse files
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 (
|
46 |
-
|
47 |
-
|
|
|
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 |
|