mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-16 16:27:45 +01:00
* format chatglm output * format code and add one problem to llm riddle * fix app warning * refine app.py and add test fn for validate fn
14 lines
353 B
Python
14 lines
353 B
Python
from app import challenges
|
|
|
|
|
|
def test_valid():
|
|
for challenge in challenges:
|
|
for p in challenge['problems']:
|
|
val_fn = p['validator']
|
|
try:
|
|
val_fn('response', 'input')
|
|
except Exception:
|
|
import traceback
|
|
traceback.print_exc()
|
|
print(p, 'failed')
|