Update nand.py
Browse files
nand.py
CHANGED
|
@@ -68,7 +68,7 @@ def process_query(iniquery, para):
|
|
| 68 |
print(f"THE QUERY SCORE for creating eco script: score={needScriptScores[0]}")
|
| 69 |
allapis = []
|
| 70 |
threshold = 0.45
|
| 71 |
-
|
| 72 |
if needScriptScores[0] > threshold:
|
| 73 |
itisscript = 1
|
| 74 |
print(f"THE QUERY REQUIRES CREATING AN ECO SCRIPT score={needScriptScores[0]} > {threshold}")
|
|
@@ -161,7 +161,7 @@ def process_query(iniquery, para):
|
|
| 161 |
outlen = len(llmout)
|
| 162 |
prolen = len(prompt)
|
| 163 |
print(f"Prompt len: {prolen} LLMOUT len: {outlen} itisscript: {itisscript}")
|
| 164 |
-
return
|
| 165 |
allret = "LLM_OUTPUT_START:"+llmout+"\nEND OF LLM OUTPUT\n"+prompt
|
| 166 |
return itisscript,allret
|
| 167 |
return itisscript,ret
|
|
|
|
| 68 |
print(f"THE QUERY SCORE for creating eco script: score={needScriptScores[0]}")
|
| 69 |
allapis = []
|
| 70 |
threshold = 0.45
|
| 71 |
+
itisscript = 0
|
| 72 |
if needScriptScores[0] > threshold:
|
| 73 |
itisscript = 1
|
| 74 |
print(f"THE QUERY REQUIRES CREATING AN ECO SCRIPT score={needScriptScores[0]} > {threshold}")
|
|
|
|
| 161 |
outlen = len(llmout)
|
| 162 |
prolen = len(prompt)
|
| 163 |
print(f"Prompt len: {prolen} LLMOUT len: {outlen} itisscript: {itisscript}")
|
| 164 |
+
return itisscript,llmout
|
| 165 |
allret = "LLM_OUTPUT_START:"+llmout+"\nEND OF LLM OUTPUT\n"+prompt
|
| 166 |
return itisscript,allret
|
| 167 |
return itisscript,ret
|