🌍 多语言翻译 用了deep_translator这个 Python 包,能支持英、日、韩等多个语种。 我经常需要看一些外文技术论坛,直接用助手翻译也挺省事的,省得我开浏览器又复制粘贴一通操作。 🔍 Google搜索 深度信息检索的时候,直接通过 Google 自定义搜索 API,问...
The Translator++ mobile app Website & Desktop app Motivation I needed to translate a text using python. It was hard to find a simple way to do it. There are other libraries that can be used for this task, but most of them are buggy, not free, limited, not supported anymore or comple...
The Translator++ mobile app Website & Desktop app Motivation I needed to translate a text using python. It was hard to find a simple way to do it. There are other libraries that can be used for this task, but most of them are buggy, not free, limited, not supported anymore or comple...
加载预训练模型:使用DeepSeek加载预训练的翻译模型,例如中英翻译模型。 from deepseek import Translator translator = Translator(model_name='zh-en') 微调模型:使用准备好的双语语料对模型进行微调,以提升翻译的准确性。 translator.fine_tune(train_data='path_to_train_data', epochs=5) 模型评估:使用测试集对...
python translator1.py https://www.huya.com/kpl 虎牙kpl的直播,文字转录: 还有繁体字,修改代码,繁体转简体: pip install opencc-python-reimplemented translator2.py: import argparse import sys import signal from datetime import datetime import ffmpeg import numpy as np import whisper from whisper.aud...
代码语言:python 代码运行次数:18 运行 AI代码解释 from transformers import pipeline from diffusers import StableDiffusionPipeline import torch # 加载 DeepSeek 文本生成模型 deepseek_text_generator = pipeline("text-generation", model="deepseek-ai/deepseek-text") # 加载 Stable Diffusion 图像生成模型 stab...
我将编写的Python脚本上传到了GitHub,欢迎大家使用。 一个简单的使用DeepSeekV3 API的PDF翻译器github.com/practicenotes007/aitranslator 初步测试与成本评估由于DeepSeekV3的使用需要消耗tokens,我先让它翻译了我负责章节的部分页面。经过与英文原文的对照,我发现翻译质量相当高,而且成本很低(翻译60页内容仅花费了...
faster-whisper是stream-translator的作者最近支持的,相比whisper,faster-whisper速度要快4倍,而显存只用不到50%(在large v2模型下)whisper和faster-whisper的对比测试: Large-v2 model on GPU ImplementationPrecisionBeam sizeTimeMax. GPU memoryMax. CPU memory openai/whisper fp16 5 4m30s 11325MB 9439MB faster...
我们首先找到知识引擎原子能力的DeepSeek OpenAI对话接口。在文档中,腾讯云提供了多种语言的接口调用示例,包括Python、Node.js和CURL。根据我们的需求,我们选择CURL进行测试。 腾讯云DeepSeek API 价格最新计费说明 2025年2月26日0时起,腾讯云DeepSeek API价格最新计费信息: ...
python-tesseract python-pyocr tesseract-ocr-eng tesseract-ocr-chi-sim tesseract-ocr-chi-tra python-requests python-sip python-xpyb python-xmltodict qt5-extra xsel python-deepin-utils python-xlib deepin-qml-widgets Installation Deepin:sudo apt-get install deepin-translator ...