MCPcopy Create free account
hub / github.com/alibaba/MNN / EvalFile

Method EvalFile

apps/mnncli/src/model_runner.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66int ModelRunner::EvalFile(const std::string& prompt_file) {
67 std::cout << "Reading prompts from: " << prompt_file << "\n";
68
69 auto prompts = ReadPromptsFromFile(prompt_file);
70 if (prompts.empty()) {
71 std::cerr << "Error: Prompt file is empty or could not be read" << std::endl;
72 return 1;
73 }
74
75 return EvalPrompts(prompts);
76}
77
78void ModelRunner::InteractiveChat() {
79 std::cout << "🚀 Starting interactive chat mode...\n";

Callers 2

HandleMethod · 0.80
mainFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected