Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/AgentTuning
/ clean_answer
Function
clean_answer
eval_general/eval_gsm8k_tgi.py:102–104 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
100
101
102
def
clean_answer(text):
103
text = text.split(
"Question:"
)[0]
104
return
text
105
106
107
def
generate_sample(prompt, ip, post_from, post_to):
Callers
3
generate_sample
Function · 0.85
__call__
Method · 0.85
__call__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected