Instructions to use MoYoYoTech/Translator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MoYoYoTech/Translator with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: llama cli -hf MoYoYoTech/Translator:Q5_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: llama cli -hf MoYoYoTech/Translator:Q5_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf MoYoYoTech/Translator:Q5_0
Use Docker
docker model run hf.co/MoYoYoTech/Translator:Q5_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use MoYoYoTech/Translator with Ollama:
ollama run hf.co/MoYoYoTech/Translator:Q5_0
- Unsloth Desktop
- Pi
How to use MoYoYoTech/Translator with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/Translator:Q5_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MoYoYoTech/Translator:Q5_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MoYoYoTech/Translator with Docker Model Runner:
docker model run hf.co/MoYoYoTech/Translator:Q5_0
- Lemonade
How to use MoYoYoTech/Translator with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MoYoYoTech/Translator:Q5_0
Run and chat with the model
lemonade run user.Translator-Q5_0
List all available models
lemonade list
- Hermes Agent
How to use MoYoYoTech/Translator with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/Translator:Q5_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default MoYoYoTech/Translator:Q5_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MoYoYoTech/Translator with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/Translator:Q5_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "MoYoYoTech/Translator:Q5_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
daihui.zhang commited on
Commit ·
2a2d4ba
1
Parent(s): 7289e30
add frontend demo
Browse filesFiles changed (9)
- .gitignore+1-1
- api_model.pyAdded+23
- config.py+1-1
- frontend/index.htmlAdded+169
- pyproject.toml+1
- transcribe/transcription.py+14-12
- transcribe/translator.py+1-1
- transcribe/whisper_llm_serve.py+83-21
- uv.lock+103
2 unmodified lines345667892 unmodified lines*$py.class# C extensions*.so
.DS_Store# Distribution / packaging.Pythonbuild/1234567891011121314151617181920212223from pydantic import BaseModel, Fieldfrom uuid import UUID
class TransResult(BaseModel): # trans_pattern: str seg_id: int context: str from_: str = Field(alias="from") to: str tran_content: str = Field(alias="tranContent") partial: bool = True
class Config: populate_by_name = True
class Message(BaseModel): result: TransResult = {} # action: str = "recognition" error_code: int = 0 request_id: UUID8 unmodified lines9101112121314158 unmodified lines
# whisper推理参数WHISPER_PROMPT_ZH = "以下是简体中文普通话的句子。" MAX_LENTH_ZH = 3MAX_LENTH_ZH = 4
WHISPER_PROMPT_EN = "The following is an English sentence."MAX_LENGTH_EN= 1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169<!DOCTYPE html><html lang="zh"><head> <meta charset="UTF-8" /> <title>试试翻译</title> <style> body { background-color: #f9f9fc; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; margin: 0; padding: 2rem; } .translation-box { background: #f2f2f8; border-radius: 12px; padding: 1.5rem; max-width: 800px; margin: 0 auto; min-height: 200px; } .entry { margin-bottom: 1.5rem; } .timestamp { font-size: 0.75rem; color: #999; } .original { font-size: 1rem; color: #333; } .translation { font-size: 1rem; font-weight: bold; color: #000; } .footer { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; } .lang-select { background: white; border-radius: 9999px; padding: 0.4rem 1rem; border: none; font-size: 1rem; box-shadow: 0 0 0 1px #ddd; } .record-button { background-color: #1e40af; color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 9999px; font-size: 1rem; cursor: pointer; } </style></head><body> <div class="translation-box" id="translationBox"> <!-- 实时内容将插入这里 --> </div>
<div class="footer"> <select class="lang-select"> <option>中文 » 英语</option> </select> <button class="record-button" onclick="startRecording()">🎤 录音</button> </div>
<script> let ws; let mediaRecorder;
function formatTimestamp(ms) { const sec = ms / 1000; const min = Math.floor(sec / 60); const s = (sec % 60).toFixed(1); return `${String(min).padStart(2, '0')}:${s.padStart(4, '0')}`; }
let lastSegId = null; // 用于存储上一个 seg_id
function addTranslation(result) { const box = document.getElementById('translationBox'); // 创建一个新的 div 来显示翻译 const entry = document.createElement('div'); entry.className = 'entry'; console.log(result);
const start = formatTimestamp(result.bg); const end = formatTimestamp(result.ed); // 判断是否是新的一行 if (result.seg_id === lastSegId) { // 如果 seg_id 相同,更新该行内容 const existingEntry = box.querySelector(`.entry[data-seg-id="${result.seg_id}"]`); if (existingEntry) { const translationDiv = existingEntry.querySelector('.translation'); translationDiv.innerHTML = result.tranContent; } } else { // 如果 seg_id 不同,表示是新的行,添加新行 entry.setAttribute('data-seg-id', result.seg_id); // 设置 seg_id entry.innerHTML = ` <div class="original">${result.context}</div> <div class="translation">${result.tranContent}</div> `; box.appendChild(entry); }
// 更新 lastSegId 以便下一次判断 lastSegId = result.seg_id;}
async function startRecording() { const stream = await navigator.mediaDevices.getUserMedia({ audio: true }); const audioContext = new AudioContext({ sampleRate: 16000 }); const source = audioContext.createMediaStreamSource(stream); const processor = audioContext.createScriptProcessor(4096, 1, 1);
const wsUrl = "ws://localhost:9090?from=zh&to=en"; ws = new WebSocket(wsUrl);
ws.binaryType = "arraybuffer";
ws.onopen = () => { console.log("WebSocket opened"); source.connect(processor); processor.connect(audioContext.destination);
processor.onaudioprocess = (e) => { const input = e.inputBuffer.getChannelData(0); const buffer = new Int16Array(input.length); for (let i = 0; i < input.length; i++) { buffer[i] = Math.max(-1, Math.min(1, input[i])) * 0x7FFF; } ws.send(buffer); }; };
ws.onmessage = (event) => { try { const msg = JSON.parse(event.data); if (msg.result) { addTranslation(msg.result); } } catch (e) { console.error("Parse error:", e); } };
ws.onerror = (e) => console.error("WebSocket error:", e); ws.onclose = () => { console.log("WebSocket closed"); processor.disconnect(); source.disconnect(); }; } </script></body></html>10 unmodified lines1112131415161710 unmodified lines "numpy>=2.1.3", "onnxruntime>=1.21.0", "pyaudio>=0.2.14", "pydantic>=2.11.2", "pywhispercpp>=1.3.0", "setuptools>=78.1.0", "soundfile>=0.13.1",12 unmodified lines1314151616171819154 unmodified lines1741751761771771781791801811821831841851861821831841871881891901911927 unmodified lines20020120219820320420520620720838 unmodified lines24724824924324424525024624724825125225312 unmodified linesfrom urllib.parse import urlparse, parse_qslfrom websockets.exceptions import ConnectionClosedfrom websockets.sync.server import serve
from uuid import uuid1logging.basicConfig(level=logging.INFO)
154 unmodified lines frame_data = websocket.recv() if frame_data == b"END_OF_AUDIO": return False return np.frombuffer(frame_data, dtype=np.float32) return np.frombuffer(frame_data, dtype=np.int16).astype(np.float32) / 32768.0
def handle_new_connection(self, websocket): query_parameters_dict = dict(parse_qsl(urlparse(websocket.request.path).query)) from_lang, to_lang = query_parameters_dict.get('from'), query_parameters_dict.get('to')
try: logging.info("New client connected") options = websocket.recv() options = json.loads(options)
# options = websocket.recv() # options = json.loads(options) options = {"language": from_lang, "uid": str(uuid1())} if self.client_manager is None: max_clients = options.get('max_clients', 4) max_connection_time = options.get('max_connection_time', 600)7 unmodified lines self.vad_detector = VoiceActivityDetector(frame_rate=self.RATE)
self.initialize_client(websocket, options)
if from_lang and to_lang: self.set_lang(websocket, from_lang, to_lang) logging.info(f"Source lange: {from_lang} -> Dst lange: {to_lang}") return True except json.JSONDecodeError: logging.error("Failed to decode JSON from client")38 unmodified lines self.backend = backend if not self.handle_new_connection(websocket): return query_parameters_dict = dict(parse_qsl(urlparse(websocket.request.path).query)) from_lang, to_lang = query_parameters_dict.get('from'), query_parameters_dict.get('to')
if from_lang and to_lang: self.set_lang(websocket, from_lang, to_lang) logging.info(f"Source lange: {from_lang} -> Dst lange: {to_lang}")
try: while not self.client_manager.is_client_timeout(websocket):27 unmodified lines282930313132333427 unmodified lines message = self.to_message(prompt, src_lang, dst_lang) start_time = time.monotonic() output = self.llm.create_chat_completion(messages=message, temperature=0.9) logger.info(f"LLM inference time: {time.monotonic() - start_time:.2f}s.") logger.info(f"Translate time: {time.monotonic() - start_time:.2f}s.") return output['choices'][0]['message']['content'] def __call__(self, prompt,*args, **kwargs):123445676 unmodified lines141516171819202122232425262728293084 unmodified lines11511611711811912012110 unmodified lines13213313413513613713825 unmodified lines16416516616716816917017117217317417510 unmodified lines1861871881741891901911761921931781941951961971981992002012022031832042052069 unmodified lines21621721821922022122222322422522622722822923023123223323423523623723823920524024124224324464 unmodified lines3093103113123133143155 unmodified lines3213223232873243253263273283293303312922933323333343353363373 unmodified lines3413423433443453463473487 unmodified lines356357358316359360361362363364365366367368318369370371372373374375376377378379380323324325326381382383384385386387388389328329330331332390391392393394395396335397398399400
import soundfilefrom concurrent.futures import ProcessPoolExecutor as Poolfrom concurrent.futures import ProcessPoolExecutor as PPoolimport multiprocessing as mpimport numpy as npfrom logging import getLogger6 unmodified linesfrom functools import partialfrom .server import ServeClientBasefrom .translator import QwenTranslatorfrom .vad import VoiceActivityDetectorfrom pywhispercpp.model import Modelfrom queue import Queuefrom scipy.io.wavfile import writefrom api_model import TransResult, Message
logger = getLogger(__name__)
def save_to_wave(filename, data:np.ndarray, sample_rate=16000): write(filename, sample_rate, data)
class TripleTextBuffer: def __init__(self, size=2):84 unmodified linesclass PywhisperInference: whisper_model = None llm_model = None vad_model = None
@classmethod def initializer(cls, event:mp.Event, warmup=True):10 unmodified lines # init llamacpp cls.llm_model = QwenTranslator(config.LLM_MODEL_PATH, config.LLM_SYS_PROMPT) cls.vad_model = VoiceActivityDetector() event.set() @classmethod25 unmodified lines @classmethod def translate(cls, context: str, src_lang, dst_lang): return cls.llm_model.translate(context, src_lang, dst_lang) @classmethod def voice_detect(cls, audio_buffer): audio_buffer = np.frombuffer(audio_buffer, dtype=np.float32) return cls.vad_model(audio_buffer)
class PyWhiperCppServe(ServeClientBase):10 unmodified lines self.lock = threading.Lock() self.frames_np = None self.sample_rate = 16000
# self._audio_queue = Queue() # 进程初始化后再开始收音频 self._ready_state = mp.Event() self._pool = Pool( self._pool = PPool( max_workers=1, initializer=partial(PywhisperInference.initializer, event=self._ready_state))
logger.info('Create a process to process audio.') self.send_ready_state() # self.load_frame_thread = threading.Thread(target=self.load_frame_from_queue) # self.load_frame_thread.daemon = True # self.load_frame_thread.start() self.trans_thread = threading.Thread(target=self.speech_to_text) self.trans_thread.daemon = True self.trans_thread.start() self.send_ready_state()
def send_ready_state(self): while not self._ready_state:9 unmodified lines self.language = src_lang self.dst_lang = dst_lang
# def load_frame_from_queue(self): # while True: # frame_np = self._audio_queue.get() # fut = self._pool.submit(PywhisperInference.voice_detect, frame_np.tobytes()) # output = fut.result() # logger.info(f"VAD: {output}") # if output == True: # with self.lock: # if self.frames_np is None: # self.frames_np = frame_np.copy() # else: # self.frames_np = np.append(self.frames_np,frame_np)
def add_frames(self, frame_np): # self._audio_queue.put(frame_np) with self.lock: if self.frames_np is None: self.frames_np = frame_np.copy() else: self.frames_np = np.append(self.frames_np,frame_np)
def update_audio_buffer(self, last_offset): with self.lock:64 unmodified lines return None, left_watch_string, right_watch_string, is_end_sentence
def speech_to_text(self): # c = 0 while True: if self.exit: logger.info("Exiting speech to text thread")5 unmodified lines continue
audio_buffer = self.get_audio_chunk_for_processing() # logger.info(f"[pywhispercpp:] Processing audio with duration: {len(audio_buffer)}") logger.info(f"Processing audio with duration: {len(audio_buffer)}") # segments = self.transcribe_audio(audio_buffer) # c+= 1 # name = f"dev-{c}.wav" # save_to_wave(name, audio_buffer) try: logger.info(f"Processing audio with duration: {len(audio_buffer) / self.sample_rate:.2f}s") segments = self.transcribe_audio(audio_buffer) for item in self.handle_transcription_output(segments, audio_buffer): print(item) for tran_result in self.handle_transcription_output(segments, audio_buffer): self.send_to_client(tran_result) except KeyboardInterrupt: break except Exception as e:3 unmodified lines def handle_transcription_output(self, segments, audio_buffer): texts = "".join(i.text for i in segments) if not len(texts): return self._segment_manager.handle(texts) # 分析句子 last_cut_index, left_string, right_string, is_end_sentence = self.analysis_segments(segments, audio_buffer)7 unmodified lines if is_end_sentence and last_cut_index: message = self._segment_manager.segment seg_id = self._segment_manager.get_seg_id() - 1 yield (seg_id, message, self.translate_text(message)) logger.info(f"{seg_id}, {message}") yield TransResult( seg_id=seg_id, context=message, from_=self.language, to=self.dst_lang, tran_content="this is english sample", partial=False ) if self._segment_manager.string.strip(): yield (seg_id + 1, self._segment_manager.string, self.translate_text(self._segment_manager.string)) logger.info(f"{seg_id + 1}, {self._segment_manager.string}") yield TransResult( seg_id=seg_id+1, context=self._segment_manager.string, from_=self.language, to=self.dst_lang, tran_content="this is english sample", ) else: seg_id = self._segment_manager.get_seg_id() message = self._segment_manager.short_sentence + self._segment_manager.string # print(self._segment_manager.__dict__) # elapsed_time = time.time() - start_time # formatted_time = f"{int(elapsed_time // 60):02}:{int(elapsed_time % 60):02}:{(elapsed_time % 1) * 1000:03.0f}" yield (seg_id, message,self.translate_text(message)) logger.info(f"{seg_id}, {message}") yield TransResult( seg_id=seg_id, context=message, from_=self.language, to=self.dst_lang, tran_content="this is english sample", ) def send_to_client(self, data_dict): content = { "uid": self.client_uid, **data_dict } def send_to_client(self, data:TransResult): # content = { # "uid": self.client_uid, # **data_dict # } try: self.websocket.send( json.dumps(content) Message(result=data, request_id=self.client_uid).model_dump_json(by_alias=True) ) except Exception as e: logger.error(f"Sending data to client: {e}")6 unmodified lines789101112131415161718192021750 unmodified lines772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857298 unmodified lines115611571158115911601161116211 unmodified lines117411751176117711781179118022 unmodified lines1203120412051206120712081209121012111212121312141215121612171218121912206 unmodified lines "python_full_version < '3.12'",]
[[package]]name = "annotated-types"version = "0.7.0"source = { registry = "https://pypi.org/simple" }sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 }wheels = [ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 },]
[[package]]name = "audioop-lts"version = "0.2.1"750 unmodified lines { url = "https://files.pythonhosted.org/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc", size = 117552 },]
[[package]]name = "pydantic"version = "2.11.2"source = { registry = "https://pypi.org/simple" }dependencies = [ { name = "annotated-types" }, { name = "pydantic-core" }, { name = "typing-extensions" }, { name = "typing-inspection" },]sdist = { url = "https://files.pythonhosted.org/packages/b0/41/832125a41fe098b58d1fdd04ae819b4dc6b34d6b09ed78304fd93d4bc051/pydantic-2.11.2.tar.gz", hash = "sha256:2138628e050bd7a1e70b91d4bf4a91167f4ad76fdb83209b107c8d84b854917e", size = 784742 }wheels = [ { url = "https://files.pythonhosted.org/packages/bf/c2/0f3baea344d0b15e35cb3e04ad5b953fa05106b76efbf4c782a3f47f22f5/pydantic-2.11.2-py3-none-any.whl", hash = "sha256:7f17d25846bcdf89b670a86cdfe7b29a9f1c9ca23dee154221c9aa81845cfca7", size = 443295 },]
[[package]]name = "pydantic-core"version = "2.33.1"source = { registry = "https://pypi.org/simple" }dependencies = [ { name = "typing-extensions" },]sdist = { url = "https://files.pythonhosted.org/packages/17/19/ed6a078a5287aea7922de6841ef4c06157931622c89c2a47940837b5eecd/pydantic_core-2.33.1.tar.gz", hash = "sha256:bcc9c6fdb0ced789245b02b7d6603e17d1563064ddcfc36f046b61c0c05dd9df", size = 434395 }wheels = [ { url = "https://files.pythonhosted.org/packages/d6/7f/c6298830cb780c46b4f46bb24298d01019ffa4d21769f39b908cd14bbd50/pydantic_core-2.33.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6e966fc3caaf9f1d96b349b0341c70c8d6573bf1bac7261f7b0ba88f96c56c24", size = 2044224 }, { url = "https://files.pythonhosted.org/packages/a8/65/6ab3a536776cad5343f625245bd38165d6663256ad43f3a200e5936afd6c/pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bfd0adeee563d59c598ceabddf2c92eec77abcb3f4a391b19aa7366170bd9e30", size = 1858845 }, { url = "https://files.pythonhosted.org/packages/e9/15/9a22fd26ba5ee8c669d4b8c9c244238e940cd5d818649603ca81d1c69861/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91815221101ad3c6b507804178a7bb5cb7b2ead9ecd600041669c8d805ebd595", size = 1910029 }, { url = "https://files.pythonhosted.org/packages/d5/33/8cb1a62818974045086f55f604044bf35b9342900318f9a2a029a1bec460/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9fea9c1869bb4742d174a57b4700c6dadea951df8b06de40c2fedb4f02931c2e", size = 1997784 }, { url = "https://files.pythonhosted.org/packages/c0/ca/49958e4df7715c71773e1ea5be1c74544923d10319173264e6db122543f9/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d20eb4861329bb2484c021b9d9a977566ab16d84000a57e28061151c62b349a", size = 2141075 }, { url = "https://files.pythonhosted.org/packages/7b/a6/0b3a167a9773c79ba834b959b4e18c3ae9216b8319bd8422792abc8a41b1/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0fb935c5591573ae3201640579f30128ccc10739b45663f93c06796854405505", size = 2745849 }, { url = "https://files.pythonhosted.org/packages/0b/60/516484135173aa9e5861d7a0663dce82e4746d2e7f803627d8c25dfa5578/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c964fd24e6166420d18fb53996d8c9fd6eac9bf5ae3ec3d03015be4414ce497f", size = 2005794 }, { url = "https://files.pythonhosted.org/packages/86/70/05b1eb77459ad47de00cf78ee003016da0cedf8b9170260488d7c21e9181/pydantic_core-2.33.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:681d65e9011f7392db5aa002b7423cc442d6a673c635668c227c6c8d0e5a4f77", size = 2123237 }, { url = "https://files.pythonhosted.org/packages/c7/57/12667a1409c04ae7dc95d3b43158948eb0368e9c790be8b095cb60611459/pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e100c52f7355a48413e2999bfb4e139d2977a904495441b374f3d4fb4a170961", size = 2086351 }, { url = "https://files.pythonhosted.org/packages/57/61/cc6d1d1c1664b58fdd6ecc64c84366c34ec9b606aeb66cafab6f4088974c/pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:048831bd363490be79acdd3232f74a0e9951b11b2b4cc058aeb72b22fdc3abe1", size = 2258914 }, { url = "https://files.pythonhosted.org/packages/d1/0a/edb137176a1f5419b2ddee8bde6a0a548cfa3c74f657f63e56232df8de88/pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:bdc84017d28459c00db6f918a7272a5190bec3090058334e43a76afb279eac7c", size = 2257385 }, { url = "https://files.pythonhosted.org/packages/26/3c/48ca982d50e4b0e1d9954919c887bdc1c2b462801bf408613ccc641b3daa/pydantic_core-2.33.1-cp311-cp311-win32.whl", hash = "sha256:32cd11c5914d1179df70406427097c7dcde19fddf1418c787540f4b730289896", size = 1923765 }, { url = "https://files.pythonhosted.org/packages/33/cd/7ab70b99e5e21559f5de38a0928ea84e6f23fdef2b0d16a6feaf942b003c/pydantic_core-2.33.1-cp311-cp311-win_amd64.whl", hash = "sha256:2ea62419ba8c397e7da28a9170a16219d310d2cf4970dbc65c32faf20d828c83", size = 1950688 }, { url = "https://files.pythonhosted.org/packages/4b/ae/db1fc237b82e2cacd379f63e3335748ab88b5adde98bf7544a1b1bd10a84/pydantic_core-2.33.1-cp311-cp311-win_arm64.whl", hash = "sha256:fc903512177361e868bc1f5b80ac8c8a6e05fcdd574a5fb5ffeac5a9982b9e89", size = 1908185 }, { url = "https://files.pythonhosted.org/packages/c8/ce/3cb22b07c29938f97ff5f5bb27521f95e2ebec399b882392deb68d6c440e/pydantic_core-2.33.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:1293d7febb995e9d3ec3ea09caf1a26214eec45b0f29f6074abb004723fc1de8", size = 2026640 }, { url = "https://files.pythonhosted.org/packages/19/78/f381d643b12378fee782a72126ec5d793081ef03791c28a0fd542a5bee64/pydantic_core-2.33.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:99b56acd433386c8f20be5c4000786d1e7ca0523c8eefc995d14d79c7a081498", size = 1852649 }, { url = "https://files.pythonhosted.org/packages/9d/2b/98a37b80b15aac9eb2c6cfc6dbd35e5058a352891c5cce3a8472d77665a6/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35a5ec3fa8c2fe6c53e1b2ccc2454398f95d5393ab398478f53e1afbbeb4d939", size = 1892472 }, { url = "https://files.pythonhosted.org/packages/4e/d4/3c59514e0f55a161004792b9ff3039da52448f43f5834f905abef9db6e4a/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b172f7b9d2f3abc0efd12e3386f7e48b576ef309544ac3a63e5e9cdd2e24585d", size = 1977509 }, { url = "https://files.pythonhosted.org/packages/a9/b6/c2c7946ef70576f79a25db59a576bce088bdc5952d1b93c9789b091df716/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9097b9f17f91eea659b9ec58148c0747ec354a42f7389b9d50701610d86f812e", size = 2128702 }, { url = "https://files.pythonhosted.org/packages/88/fe/65a880f81e3f2a974312b61f82a03d85528f89a010ce21ad92f109d94deb/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc77ec5b7e2118b152b0d886c7514a4653bcb58c6b1d760134a9fab915f777b3", size = 2679428 }, { url = "https://files.pythonhosted.org/packages/6f/ff/4459e4146afd0462fb483bb98aa2436d69c484737feaceba1341615fb0ac/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3d15245b08fa4a84cefc6c9222e6f37c98111c8679fbd94aa145f9a0ae23d", size = 2008753 }, { url = "https://files.pythonhosted.org/packages/7c/76/1c42e384e8d78452ededac8b583fe2550c84abfef83a0552e0e7478ccbc3/pydantic_core-2.33.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ef99779001d7ac2e2461d8ab55d3373fe7315caefdbecd8ced75304ae5a6fc6b", size = 2114849 }, { url = "https://files.pythonhosted.org/packages/00/72/7d0cf05095c15f7ffe0eb78914b166d591c0eed72f294da68378da205101/pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:fc6bf8869e193855e8d91d91f6bf59699a5cdfaa47a404e278e776dd7f168b39", size = 2069541 }, { url = "https://files.pythonhosted.org/packages/b3/69/94a514066bb7d8be499aa764926937409d2389c09be0b5107a970286ef81/pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:b1caa0bc2741b043db7823843e1bde8aaa58a55a58fda06083b0569f8b45693a", size = 2239225 }, { url = "https://files.pythonhosted.org/packages/84/b0/e390071eadb44b41f4f54c3cef64d8bf5f9612c92686c9299eaa09e267e2/pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ec259f62538e8bf364903a7d0d0239447059f9434b284f5536e8402b7dd198db", size = 2248373 }, { url = "https://files.pythonhosted.org/packages/d6/b2/288b3579ffc07e92af66e2f1a11be3b056fe1214aab314748461f21a31c3/pydantic_core-2.33.1-cp312-cp312-win32.whl", hash = "sha256:e14f369c98a7c15772b9da98987f58e2b509a93235582838bd0d1d8c08b68fda", size = 1907034 }, { url = "https://files.pythonhosted.org/packages/02/28/58442ad1c22b5b6742b992ba9518420235adced665513868f99a1c2638a5/pydantic_core-2.33.1-cp312-cp312-win_amd64.whl", hash = "sha256:1c607801d85e2e123357b3893f82c97a42856192997b95b4d8325deb1cd0c5f4", size = 1956848 }, { url = "https://files.pythonhosted.org/packages/a1/eb/f54809b51c7e2a1d9f439f158b8dd94359321abcc98767e16fc48ae5a77e/pydantic_core-2.33.1-cp312-cp312-win_arm64.whl", hash = "sha256:8d13f0276806ee722e70a1c93da19748594f19ac4299c7e41237fc791d1861ea", size = 1903986 }, { url = "https://files.pythonhosted.org/packages/7a/24/eed3466a4308d79155f1cdd5c7432c80ddcc4530ba8623b79d5ced021641/pydantic_core-2.33.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:70af6a21237b53d1fe7b9325b20e65cbf2f0a848cf77bed492b029139701e66a", size = 2033551 }, { url = "https://files.pythonhosted.org/packages/ab/14/df54b1a0bc9b6ded9b758b73139d2c11b4e8eb43e8ab9c5847c0a2913ada/pydantic_core-2.33.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:282b3fe1bbbe5ae35224a0dbd05aed9ccabccd241e8e6b60370484234b456266", size = 1852785 }, { url = "https://files.pythonhosted.org/packages/fa/96/e275f15ff3d34bb04b0125d9bc8848bf69f25d784d92a63676112451bfb9/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4b315e596282bbb5822d0c7ee9d255595bd7506d1cb20c2911a4da0b970187d3", size = 1897758 }, { url = "https://files.pythonhosted.org/packages/b7/d8/96bc536e975b69e3a924b507d2a19aedbf50b24e08c80fb00e35f9baaed8/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1dfae24cf9921875ca0ca6a8ecb4bb2f13c855794ed0d468d6abbec6e6dcd44a", size = 1986109 }, { url = "https://files.pythonhosted.org/packages/90/72/ab58e43ce7e900b88cb571ed057b2fcd0e95b708a2e0bed475b10130393e/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dd8ecfde08d8bfadaea669e83c63939af76f4cf5538a72597016edfa3fad516", size = 2129159 }, { url = "https://files.pythonhosted.org/packages/dc/3f/52d85781406886c6870ac995ec0ba7ccc028b530b0798c9080531b409fdb/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f593494876eae852dc98c43c6f260f45abdbfeec9e4324e31a481d948214764", size = 2680222 }, { url = "https://files.pythonhosted.org/packages/f4/56/6e2ef42f363a0eec0fd92f74a91e0ac48cd2e49b695aac1509ad81eee86a/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:948b73114f47fd7016088e5186d13faf5e1b2fe83f5e320e371f035557fd264d", size = 2006980 }, { url = "https://files.pythonhosted.org/packages/4c/c0/604536c4379cc78359f9ee0aa319f4aedf6b652ec2854953f5a14fc38c5a/pydantic_core-2.33.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e11f3864eb516af21b01e25fac915a82e9ddad3bb0fb9e95a246067398b435a4", size = 2120840 }, { url = "https://files.pythonhosted.org/packages/1f/46/9eb764814f508f0edfb291a0f75d10854d78113fa13900ce13729aaec3ae/pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:549150be302428b56fdad0c23c2741dcdb5572413776826c965619a25d9c6bde", size = 2072518 }, { url = "https://files.pythonhosted.org/packages/42/e3/fb6b2a732b82d1666fa6bf53e3627867ea3131c5f39f98ce92141e3e3dc1/pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:495bc156026efafd9ef2d82372bd38afce78ddd82bf28ef5276c469e57c0c83e", size = 2248025 }, { url = "https://files.pythonhosted.org/packages/5c/9d/fbe8fe9d1aa4dac88723f10a921bc7418bd3378a567cb5e21193a3c48b43/pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ec79de2a8680b1a67a07490bddf9636d5c2fab609ba8c57597e855fa5fa4dacd", size = 2254991 }, { url = "https://files.pythonhosted.org/packages/aa/99/07e2237b8a66438d9b26482332cda99a9acccb58d284af7bc7c946a42fd3/pydantic_core-2.33.1-cp313-cp313-win32.whl", hash = "sha256:ee12a7be1742f81b8a65b36c6921022301d466b82d80315d215c4c691724986f", size = 1915262 }, { url = "https://files.pythonhosted.org/packages/8a/f4/e457a7849beeed1e5defbcf5051c6f7b3c91a0624dd31543a64fc9adcf52/pydantic_core-2.33.1-cp313-cp313-win_amd64.whl", hash = "sha256:ede9b407e39949d2afc46385ce6bd6e11588660c26f80576c11c958e6647bc40", size = 1956626 }, { url = "https://files.pythonhosted.org/packages/20/d0/e8d567a7cff7b04e017ae164d98011f1e1894269fe8e90ea187a3cbfb562/pydantic_core-2.33.1-cp313-cp313-win_arm64.whl", hash = "sha256:aa687a23d4b7871a00e03ca96a09cad0f28f443690d300500603bd0adba4b523", size = 1909590 }, { url = "https://files.pythonhosted.org/packages/ef/fd/24ea4302d7a527d672c5be06e17df16aabfb4e9fdc6e0b345c21580f3d2a/pydantic_core-2.33.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:401d7b76e1000d0dd5538e6381d28febdcacb097c8d340dde7d7fc6e13e9f95d", size = 1812963 }, { url = "https://files.pythonhosted.org/packages/5f/95/4fbc2ecdeb5c1c53f1175a32d870250194eb2fdf6291b795ab08c8646d5d/pydantic_core-2.33.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7aeb055a42d734c0255c9e489ac67e75397d59c6fbe60d155851e9782f276a9c", size = 1986896 }, { url = "https://files.pythonhosted.org/packages/71/ae/fe31e7f4a62431222d8f65a3bd02e3fa7e6026d154a00818e6d30520ea77/pydantic_core-2.33.1-cp313-cp313t-win_amd64.whl", hash = "sha256:338ea9b73e6e109f15ab439e62cb3b78aa752c7fd9536794112e14bee02c8d18", size = 1931810 }, { url = "https://files.pythonhosted.org/packages/0b/76/1794e440c1801ed35415238d2c728f26cd12695df9057154ad768b7b991c/pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3a371dc00282c4b84246509a5ddc808e61b9864aa1eae9ecc92bb1268b82db4a", size = 2042858 }, { url = "https://files.pythonhosted.org/packages/73/b4/9cd7b081fb0b1b4f8150507cd59d27b275c3e22ad60b35cb19ea0977d9b9/pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:f59295ecc75a1788af8ba92f2e8c6eeaa5a94c22fc4d151e8d9638814f85c8fc", size = 1873745 }, { url = "https://files.pythonhosted.org/packages/e1/d7/9ddb7575d4321e40d0363903c2576c8c0c3280ebea137777e5ab58d723e3/pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08530b8ac922003033f399128505f513e30ca770527cc8bbacf75a84fcc2c74b", size = 1904188 }, { url = "https://files.pythonhosted.org/packages/d1/a8/3194ccfe461bb08da19377ebec8cb4f13c9bd82e13baebc53c5c7c39a029/pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bae370459da6a5466978c0eacf90690cb57ec9d533f8e63e564ef3822bfa04fe", size = 2083479 }, { url = "https://files.pythonhosted.org/packages/42/c7/84cb569555d7179ca0b3f838cef08f66f7089b54432f5b8599aac6e9533e/pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e3de2777e3b9f4d603112f78006f4ae0acb936e95f06da6cb1a45fbad6bdb4b5", size = 2118415 }, { url = "https://files.pythonhosted.org/packages/3b/67/72abb8c73e0837716afbb58a59cc9e3ae43d1aa8677f3b4bc72c16142716/pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3a64e81e8cba118e108d7126362ea30e021291b7805d47e4896e52c791be2761", size = 2079623 }, { url = "https://files.pythonhosted.org/packages/0b/cd/c59707e35a47ba4cbbf153c3f7c56420c58653b5801b055dc52cccc8e2dc/pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:52928d8c1b6bda03cc6d811e8923dffc87a2d3c8b3bfd2ce16471c7147a24850", size = 2250175 }, { url = "https://files.pythonhosted.org/packages/84/32/e4325a6676b0bed32d5b084566ec86ed7fd1e9bcbfc49c578b1755bde920/pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:1b30d92c9412beb5ac6b10a3eb7ef92ccb14e3f2a8d7732e2d739f58b3aa7544", size = 2254674 }, { url = "https://files.pythonhosted.org/packages/12/6f/5596dc418f2e292ffc661d21931ab34591952e2843e7168ea5a52591f6ff/pydantic_core-2.33.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:f995719707e0e29f0f41a8aa3bcea6e761a36c9136104d3189eafb83f5cec5e5", size = 2080951 },]
[[package]]name = "pyreadline3"version = "3.5.4"298 unmodified lines { name = "numpy" }, { name = "onnxruntime" }, { name = "pyaudio" }, { name = "pydantic" }, { name = "pywhispercpp" }, { name = "setuptools" }, { name = "soundfile" },11 unmodified lines { name = "numpy", specifier = ">=2.1.3" }, { name = "onnxruntime", specifier = ">=1.21.0" }, { name = "pyaudio", specifier = ">=0.2.14" }, { name = "pydantic", specifier = ">=2.11.2" }, { name = "pywhispercpp", specifier = ">=1.3.0" }, { name = "setuptools", specifier = ">=78.1.0" }, { name = "soundfile", specifier = ">=0.13.1" },22 unmodified lines { url = "https://files.pythonhosted.org/packages/e0/86/39b65d676ec5732de17b7e3c476e45bb80ec64eb50737a8dce1a4178aba1/typing_extensions-4.13.0-py3-none-any.whl", hash = "sha256:c8dd92cc0d6425a97c18fbb9d1954e5ff92c1ca881a309c45f06ebc0b79058e5", size = 45683 },]
[[package]]name = "typing-inspection"version = "0.4.0"source = { registry = "https://pypi.org/simple" }dependencies = [ { name = "typing-extensions" },]sdist = { url = "https://files.pythonhosted.org/packages/82/5c/e6082df02e215b846b4b8c0b887a64d7d08ffaba30605502639d44c06b82/typing_inspection-0.4.0.tar.gz", hash = "sha256:9765c87de36671694a67904bf2c96e395be9c6439bb6c87b5142569dcdd65122", size = 76222 }wheels = [ { url = "https://files.pythonhosted.org/packages/31/08/aa4fdfb71f7de5176385bd9e90852eaf6b5d622735020ad600f2bab54385/typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f", size = 14125 },]
[[package]]name = "urllib3"version = "2.3.0".gitignore+1-1
api_model.pyAdded+23
config.py+1-1
frontend/index.htmlAdded+169
pyproject.toml+1
transcribe/transcription.py+14-12
transcribe/translator.py+1-1
transcribe/whisper_llm_serve.py+83-21
uv.lock+103