Update nand.py
Browse files
nand.py
CHANGED
|
@@ -152,6 +152,7 @@ def process_query(iniquery, para):
|
|
| 152 |
outlen = len(llmout)
|
| 153 |
prolen = len(prompt)
|
| 154 |
print(f"Prompt len: {prolen} LLMOUT len: {outlen}")
|
|
|
|
| 155 |
allret = "LLM_OUTPUT_START:"+llmout+"\nEND OF LLM OUTPUT\n"+prompt
|
| 156 |
return allret
|
| 157 |
return ret
|
|
@@ -236,7 +237,7 @@ def llmGenerate(prompt, temperature=0.001, max_new_tokens=2048, top_p=0.95, repe
|
|
| 236 |
|
| 237 |
|
| 238 |
def thoseRemove():
|
| 239 |
-
those = ["
|
| 240 |
return those
|
| 241 |
|
| 242 |
def GetContent(file):
|
|
|
|
| 152 |
outlen = len(llmout)
|
| 153 |
prolen = len(prompt)
|
| 154 |
print(f"Prompt len: {prolen} LLMOUT len: {outlen}")
|
| 155 |
+
return llmout
|
| 156 |
allret = "LLM_OUTPUT_START:"+llmout+"\nEND OF LLM OUTPUT\n"+prompt
|
| 157 |
return allret
|
| 158 |
return ret
|
|
|
|
| 237 |
|
| 238 |
|
| 239 |
def thoseRemove():
|
| 240 |
+
those = ["redundant"]
|
| 241 |
return those
|
| 242 |
|
| 243 |
def GetContent(file):
|