[Feature] XiaomiMiMo/MiMo-V2.5-ASR support (#3089)
Signed-off-by: Baoyuan Qi <qibaoyuan@xiaomi.com>
This commit is contained in:
1 parent
345504b68f
commit
5632b78b3d
4 files changed
+13
-4
No files matched your search
@@ -309,7 +309,10 @@ def main(args):
|
||||
lines.append("Prompt:\n")
|
||||
lines.append(str(prompt_text) + "\n")
|
||||
lines.append("vllm_text_output:\n")
|
||||
lines.append(str(text_output).strip() + "\n")
|
||||
output_text = str(text_output)
|
||||
if "<chinese>" in output_text or "<english>" in output_text:
|
||||
output_text = output_text.replace("<chinese>", "").replace("<english>", "").strip()
|
||||
lines.append(output_text + "\n")
|
||||
try:
|
||||
with open(out_txt, "w", encoding="utf-8") as f:
|
||||
print("lines", lines)
|
||||
@@ -351,7 +354,7 @@ def parse_args():
|
||||
"--text",
|
||||
"-t",
|
||||
type=str,
|
||||
default="The weather is so nice today.",
|
||||
default="",
|
||||
help="input text",
|
||||
)
|
||||
parser.add_argument(
|
||||
|
||||
Reference in new issue
Block a user