Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
dc675f7
1
Parent(s):
f46de5a
New system files
Browse files- evaluations/models.py +4 -2
evaluations/models.py
CHANGED
@@ -2,7 +2,8 @@ from transformers import pipeline
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
import os
|
4 |
|
5 |
-
system_messages = { "STRICT": """You are a chatbot evaluating github repositories, their python codes and corresponding readme files.
|
|
|
6 |
Strictly answer the questions with "Yes" or "No".
|
7 |
Don't use any punctuation either.""",
|
8 |
"HELP": """You are a chatbot evaluating github repositories, their python codes and corresponding readme files.
|
@@ -11,8 +12,9 @@ system_messages = { "STRICT": """You are a chatbot evaluating github repositorie
|
|
11 |
Your answer should be a single paragraph.""",
|
12 |
"PITFALL": """You are a chatbot evaluating github repositories, their python codes and corresponding readme files.
|
13 |
You are looking for common pitfalls in the code.
|
|
|
14 |
Keep your answer short and informative.
|
15 |
-
Only report serious flaws. If you don't find any,
|
16 |
Answer in a short paragraph, and keep in mind the following common pitfall categories
|
17 |
Pitfall #1 Design-flaws with regards to the data collection in the code."))
|
18 |
Pitfall #2 Dataset shift (e.g. sampling bias, imbalanced populations, imbalanced labels, non-stationary environments)."))
|
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
import os
|
4 |
|
5 |
+
system_messages = { "STRICT": """You are a chatbot evaluating github repositories, their python codes and corresponding readme files.
|
6 |
+
Keep in mind, that the code you are provided is only one of many files in the repository.
|
7 |
Strictly answer the questions with "Yes" or "No".
|
8 |
Don't use any punctuation either.""",
|
9 |
"HELP": """You are a chatbot evaluating github repositories, their python codes and corresponding readme files.
|
|
|
12 |
Your answer should be a single paragraph.""",
|
13 |
"PITFALL": """You are a chatbot evaluating github repositories, their python codes and corresponding readme files.
|
14 |
You are looking for common pitfalls in the code.
|
15 |
+
Keep in mind, that the code you are provided is only one of many files in the repository.
|
16 |
Keep your answer short and informative.
|
17 |
+
Only report serious flaws. If you don't find any, don't mention it.
|
18 |
Answer in a short paragraph, and keep in mind the following common pitfall categories
|
19 |
Pitfall #1 Design-flaws with regards to the data collection in the code."))
|
20 |
Pitfall #2 Dataset shift (e.g. sampling bias, imbalanced populations, imbalanced labels, non-stationary environments)."))
|