MCPcopy 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
102def clean_answer(text):
103 text = text.split("Question:")[0]
104 return text
105
106
107def generate_sample(prompt, ip, post_from, post_to):

Callers 3

generate_sampleFunction · 0.85
__call__Method · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected