repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
docling-project/docling
https://github.com/docling-project/docling
null
null
null
null
59,076
null
null
mit
null
null
null
null
null
null
null
docling/backend/noop_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:17:59.098422
import logging from io import BytesIO from pathlib import Path from typing import Set, Union from docling.backend.abstract_backend import AbstractDocumentBackend from docling.datamodel.base_models import InputFormat from docling.datamodel.document import InputDocument _log = logging.getLogger(__name__) class NoOpBa...
docling-project/docling
https://github.com/docling-project/docling
null
null
null
null
59,076
null
null
mit
null
null
null
null
null
null
null
docling/backend/pdf_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:17:59.130950
from abc import ABC, abstractmethod from collections.abc import Iterable from io import BytesIO from pathlib import Path from typing import Optional, Set, Union from docling_core.types.doc import BoundingBox, Size from docling_core.types.doc.page import SegmentedPdfPage, TextCell from PIL import Image from docling.ba...
docling-project/docling
https://github.com/docling-project/docling
null
null
null
null
59,076
null
null
mit
null
null
null
null
null
null
null
docling/backend/pypdfium2_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:17:59.199295
import logging import random from collections.abc import Iterable from importlib.metadata import version from io import BytesIO from pathlib import Path from typing import TYPE_CHECKING, List, Optional, Union import pypdfium2 as pdfium import pypdfium2.raw as pdfium_c from docling_core.types.doc import BoundingBox, Co...
docling-project/docling
https://github.com/docling-project/docling
null
null
null
null
59,076
null
null
mit
null
null
null
null
null
null
null
docling/backend/webvtt_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:17:59.204550
import logging from dataclasses import dataclass, field from io import BytesIO from pathlib import Path from docling_core.types.doc import ( ContentLayer, DocItemLabel, DoclingDocument, DocumentOrigin, Formatting, TrackSource, ) from docling_core.types.doc.webvtt import ( WebVTTCueBoldSpan,...
docling-project/docling
https://github.com/docling-project/docling
null
null
null
null
59,076
null
null
mit
null
null
null
null
null
null
null
docling/backend/xml/jats_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:17:59.345048
"""Backend to parse articles in JATS (Journal Article Tag Suite) XML format. JATS is a standard XML format used by publishers and journal archives including PubMed Central (PMC), bioRxiv, and medRxiv for representing journal articles. Security Note: This module uses lxml.etree.XMLParser with secure configuration ...
docling-project/docling
https://github.com/docling-project/docling
null
null
null
null
59,076
null
null
mit
null
null
null
null
null
null
null
docling/backend/xml/uspto_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:17:59.450836
"""Backend to parse patents from the United States Patent Office (USPTO). The parsers included in this module can handle patent grants published since 1976 and patent applications since 2001. The original files can be found in https://bulkdata.uspto.gov. Security Note: This module uses defusedxml.sax.make_parser(...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/eval_gpt2_xl.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.714131
# evaluate the base gpt2 # n_layer=48, n_head=25, n_embd=1600 # 1558M parameters batch_size = 8 eval_iters = 500 # use more iterations to get good estimate eval_only = True wandb_log = False init_from = 'gpt2-xl'
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/eval_gpt2_medium.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.715400
# evaluate the base gpt2 # n_layer=24, n_head=16, n_embd=1024 # 350M parameters batch_size = 8 eval_iters = 500 # use more iterations to get good estimate eval_only = True wandb_log = False init_from = 'gpt2-medium'
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/eval_gpt2_large.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.724057
# evaluate the base gpt2 # n_layer=36, n_head=20, n_embd=1280 # 774M parameters batch_size = 8 eval_iters = 500 # use more iterations to get good estimate eval_only = True wandb_log = False init_from = 'gpt2-large'
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/train_gpt2.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.725253
# config for training GPT-2 (124M) down to very nice loss of ~2.85 on 1 node of 8X A100 40GB # launch as the following (e.g. in a screen session) and wait ~5 days: # $ torchrun --standalone --nproc_per_node=8 train.py config/train_gpt2.py wandb_log = True wandb_project = 'owt' wandb_run_name='gpt2-124M' # these make ...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/eval_gpt2.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.736114
# evaluate the base gpt2 # n_layer=12, n_head=12, n_embd=768 # 124M parameters batch_size = 8 eval_iters = 500 # use more iterations to get good estimate eval_only = True wandb_log = False init_from = 'gpt2'
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
data/openwebtext/prepare.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.737604
# saves the openwebtext dataset to a binary file for training. following was helpful: # https://github.com/HazyResearch/flash-attention/blob/main/training/src/datamodules/language_modeling_hf.py import os from tqdm import tqdm import numpy as np import tiktoken from datasets import load_dataset # huggingface datasets ...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
bench.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.744985
""" A much shorter version of train.py for benchmarking """ import os from contextlib import nullcontext import numpy as np import time import torch from model import GPTConfig, GPT # ----------------------------------------------------------------------------- batch_size = 12 block_size = 1024 bias = False real_data ...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
configurator.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.765243
""" Poor Man's Configurator. Probably a terrible idea. Example usage: $ python train.py config/override_file.py --batch_size=32 this will first run config/override_file.py, then override batch_size to 32 The code in this file will be run as follows from e.g. train.py: >>> exec(open('configurator.py').read()) So it's ...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/train_shakespeare_char.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.774653
# train a miniature character-level shakespeare model # good for debugging and playing on macbooks and such out_dir = 'out-shakespeare-char' eval_interval = 250 # keep frequent because we'll overfit eval_iters = 200 log_interval = 10 # don't print too too often # we expect to overfit on this small dataset, so only sa...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
config/finetune_shakespeare.py
null
null
null
null
null
null
Python
2026-05-04T02:18:01.775343
import time out_dir = 'out-shakespeare' eval_interval = 5 eval_iters = 40 wandb_log = False # feel free to turn on wandb_project = 'shakespeare' wandb_run_name = 'ft-' + str(time.time()) dataset = 'shakespeare' init_from = 'gpt2-xl' # this is the largest GPT-2 model # only save checkpoints if the validation loss imp...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
train.py
null
null
null
null
null
null
Python
2026-05-04T02:18:02.646272
""" This training script can be run both on a single gpu in debug mode, and also in a larger training run with distributed data parallel (ddp). To run on a single GPU, example: $ python train.py --batch_size=32 --compile=False To run with DDP on 4 gpus on 1 node, example: $ torchrun --standalone --nproc_per_node=4 tr...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
data/shakespeare_char/prepare.py
null
null
null
null
null
null
Python
2026-05-04T02:18:02.646844
""" Prepare the Shakespeare dataset for character-level language modeling. So instead of encoding with GPT-2 BPE tokens, we just map characters to ints. Will save train.bin, val.bin containing the ids, and meta.pkl containing the encoder and decoder and some other related info. """ import os import pickle import reques...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
model.py
null
null
null
null
null
null
Python
2026-05-04T02:18:02.647501
""" Full definition of a GPT Language Model, all of it in this single file. References: 1) the official GPT-2 TensorFlow implementation released by OpenAI: https://github.com/openai/gpt-2/blob/master/src/model.py 2) huggingface/transformers PyTorch implementation: https://github.com/huggingface/transformers/blob/main/s...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
data/shakespeare/prepare.py
null
null
null
null
null
null
Python
2026-05-04T02:18:03.049655
import os import requests import tiktoken import numpy as np # download the tiny shakespeare dataset input_file_path = os.path.join(os.path.dirname(__file__), 'input.txt') if not os.path.exists(input_file_path): data_url = 'https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt' ...
karpathy/nanoGPT
https://github.com/karpathy/nanoGPT
null
null
null
null
57,461
null
null
mit
null
null
null
null
null
null
null
sample.py
null
null
null
null
null
null
Python
2026-05-04T02:18:03.162131
""" Sample from a trained model """ import os import pickle from contextlib import nullcontext import torch import tiktoken from model import GPTConfig, GPT # ----------------------------------------------------------------------------- init_from = 'resume' # either 'resume' (from an out_dir) or a gpt2 variant (e.g. '...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/data/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.619983
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/data/dataset.py # reference: https://github.com/lifeiteng/vall-e # sys.path.append("/data/docker/liujing04/gpt-vits/mq-vits-s1bert_no_bert") import os import traceback from typing import Dict, List import numpy as np import pandas...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/data/bucket_sampler.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.638397
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/data/bucket_sampler.py # reference: https://github.com/lifeiteng/vall-e import itertools import math import random from random import shuffle from typing import Iterator, Optional, TypeVar import torch import torch.distributed as d...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/embedding_cudagraph.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.647285
import math import torch from torch import nn class TokenEmbedding(nn.Module): def __init__(self, embedding_dim: int, vocab_size: int, dropout: float = 0.0): super().__init__() self.vocab_size = vocab_size self.embedding_dim = embedding_dim self.dropout = nn.Dropout(p=dropout) ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.648323
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_lightning_module.py # reference: https://github.com/lifeiteng/vall-e import os import sys now_dir = os.getcwd() sys.path.append(now_dir) from typing import Dict import torch from pytorch_lightning import LightningModule...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/structs_cudagraph.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.657261
from __future__ import annotations from dataclasses import dataclass from typing import List, Literal, Optional import torch Tensor = torch.Tensor @dataclass class T2SResult: result: List[Tensor] | None = None infer_speed: float = 0.0 status: Literal["Success", "Error"] = "Success" exception: Optio...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/t2s_lightning_module.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.686940
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_lightning_module.py # reference: https://github.com/lifeiteng/vall-e import os import sys now_dir = os.getcwd() sys.path.append(now_dir) from typing import Dict import torch from pytorch_lightning import LightningModule...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/data/data_module.py
null
null
null
null
null
null
Python
2026-05-04T02:18:05.733993
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/data/data_module.py # reference: https://github.com/lifeiteng/vall-e from pytorch_lightning import LightningDataModule from torch.utils.data import DataLoader from AR.data.bucket_sampler import DistributedBucketSampler from AR.data...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/t2s_model_cudagraph.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.234434
""" CUDA Graph accelerated T2S decoder. Uses PyTorch native scaled_dot_product_attention (no flash_attn dependency). Adapted from gsvpp/AR/models/t2s_model_abc.py and t2s_model_flash_attn.py. """ from __future__ import annotations import os import time import traceback from typing import Dict, List, MutableSequence, ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/t2s_model_onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.264400
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_model.py # reference: https://github.com/lifeiteng/vall-e import torch from torch import nn from torch.nn import functional as F from torchmetrics.classification import MulticlassAccuracy from AR.modules.embedding_onnx i...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/activation.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.309815
# modified from https://github.com/lifeiteng/vall-e/blob/main/valle/modules/activation.py from typing import Optional, Tuple import torch from torch import Tensor from torch.nn import Linear, Module from torch.nn import functional as F from torch.nn.init import constant_, xavier_normal_, xavier_uniform_ from torch.nn....
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/embedding.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.332997
# modified from https://github.com/lifeiteng/vall-e/blob/main/valle/modules/embedding.py import math import torch from torch import nn class TokenEmbedding(nn.Module): def __init__( self, embedding_dim: int, vocab_size: int, dropout: float = 0.0, ): super().__init__() ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/activation_onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.334242
# modified from https://github.com/lifeiteng/vall-e/blob/main/valle/modules/activation.py from typing import Optional, Tuple import torch from torch import Tensor from torch.nn import Linear, Module from torch.nn.init import constant_, xavier_normal_, xavier_uniform_ from torch.nn.modules.linear import NonDynamicallyQ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/lr_schedulers.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.347002
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/modules/lr_schedulers.py # reference: https://github.com/lifeiteng/vall-e import math import torch from matplotlib import pyplot as plt from torch import nn from torch.optim import Adam class WarmupCosineLRSchedule(torch.optim.lr...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.358232
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/utils.py # reference: https://github.com/lifeiteng/vall-e from typing import Tuple import torch import torch.nn.functional as F def sequence_mask(length, max_length=None): if max_length is None: max_length = le...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/embedding_onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.362320
# modified from https://github.com/lifeiteng/vall-e/blob/main/valle/modules/embedding.py import math import torch from torch import nn class TokenEmbedding(nn.Module): def __init__( self, embedding_dim: int, vocab_size: int, dropout: float = 0.0, ): super().__init__() ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/models/t2s_model.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.387392
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/models/t2s_model.py # reference: https://github.com/lifeiteng/vall-e import math from typing import List, Optional import torch from torch import nn from torch.nn import functional as F from torchmetrics.classification import Multi...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/optim.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.954722
# Copyright 2022 Xiaomi Corp. (authors: Daniel Povey) # # See ../LICENSE for clarification regarding multiple authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/text_processing/symbols.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.987908
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/text_processing/symbols.py # reference: https://github.com/lifeiteng/vall-e PAD = "_" PUNCTUATION = ';:,.!?¡¿—…"«»“” ' LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" IPA_LETTERS = ( "ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/scaling.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.989121
# Copyright 2022 Xiaomi Corp. (authors: Daniel Povey) # # See ../../../../LICENSE for clarification regarding multiple authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/transformer_onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:18:06.999380
# modified from https://github.com/lifeiteng/vall-e/blob/main/valle/modules/transformer.py import copy import numbers from functools import partial from typing import Any from typing import Callable from typing import List from typing import Optional from typing import Tuple from typing import Union import torch from ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/text_processing/phonemizer.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.002452
# modified from https://github.com/yangdongchao/SoundStorm/blob/master/soundstorm/s1/AR/text_processing/phonemizer.py # reference: https://github.com/lifeiteng/vall-e import itertools import re from typing import Dict from typing import List import regex from gruut import sentences from gruut.const import Sentence fro...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/transformer.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.003653
# modified from https://github.com/lifeiteng/vall-e/blob/main/valle/modules/transformer.py import copy import numbers from functools import partial from typing import Any from typing import Callable from typing import List from typing import Optional from typing import Tuple from typing import Union import torch from ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/utils/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.067052
import re def str2bool(str): return True if str.lower() == "true" else False def get_newest_ckpt(string_list): # 定义一个正则表达式模式,用于匹配字符串中的数字 pattern = r"epoch=(\d+)-step=(\d+)\.ckpt" # 使用正则表达式提取每个字符串中的数字信息,并创建一个包含元组的列表 extracted_info = [] for string in string_list: match = re.match(patt...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/patched_mha_with_cache_onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.072549
from torch.nn.functional import * from torch.nn.functional import ( _canonical_mask, ) def multi_head_attention_forward_patched( query, key, value, embed_dim_to_check, num_heads, in_proj_weight, in_proj_bias, bias_k, bias_v, add_zero_attn, dropout_p, ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/modules/patched_mha_with_cache.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.073845
from torch.nn.functional import * from torch.nn.functional import ( _mha_shape_check, _canonical_mask, _none_or_dtype, _in_projection_packed, ) import torch # Tensor = torch.Tensor # from typing import Callable, List, Optional, Tuple, Union def multi_head_attention_forward_patched( qu...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/utils/io.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.596179
import sys import torch import yaml def load_yaml_config(path): with open(path) as f: config = yaml.full_load(f) return config def save_config_to_yaml(config, path): assert path.endswith(".yaml") with open(path, "w") as f: f.write(yaml.dump(config)) f.close() def write_arg...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/activations.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.617749
# Implementation adapted from https://github.com/EdwardDixon/snake under the MIT license. # LICENSE is in incl_licenses directory. import torch from torch import nn, sin, pow from torch.nn import Parameter class Snake(nn.Module): """ Implementation of a sine-based periodic activation function Shape: ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/alias_free_activation/cuda/load.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.618909
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. import os import pathlib import subprocess from torch.utils import cpp_extension """ Setting this param to a list has a problem of generating different compilation commands (with diferent order of architectures) and leading to recompilation...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/alias_free_activation/torch/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.636459
# Adapted from https://github.com/junjun3518/alias-free-torch under the Apache License 2.0 # LICENSE is in incl_licenses directory. from .filter import * from .resample import * from .act import *
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/alias_free_activation/cuda/activation1d.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.663429
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. import torch import torch.nn as nn from alias_free_activation.torch.resample import UpSample1d, DownSample1d # load fused CUDA kernel: this enables importing anti_alias_activation_cuda from alias_free_activation.cuda import load anti_alias_...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/AR/utils/initialize.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.666154
#!/usr/bin/env python3 """Initialize modules for espnet2 neural networks.""" import torch from typeguard import check_argument_types def initialize(model: torch.nn.Module, init: str): """Initialize weights of a neural network module. Parameters are initialized using the given method or distribution. Cu...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/alias_free_activation/torch/resample.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.667650
# Adapted from https://github.com/junjun3518/alias-free-torch under the Apache License 2.0 # LICENSE is in incl_licenses directory. import torch.nn as nn from torch.nn import functional as F from .filter import LowPassFilter1d from .filter import kaiser_sinc_filter1d class UpSample1d(nn.Module): def __init__(s...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/alias_free_activation/torch/filter.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.671211
# Adapted from https://github.com/junjun3518/alias-free-torch under the Apache License 2.0 # LICENSE is in incl_licenses directory. import torch import torch.nn as nn import torch.nn.functional as F import math if "sinc" in dir(torch): sinc = torch.sinc else: # This code is adopted from adefossez's julius.c...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/alias_free_activation/torch/act.py
null
null
null
null
null
null
Python
2026-05-04T02:18:07.707931
# Adapted from https://github.com/junjun3518/alias-free-torch under the Apache License 2.0 # LICENSE is in incl_licenses directory. import torch.nn as nn from .resample import UpSample1d, DownSample1d class Activation1d(nn.Module): def __init__( self, activation, up_ratio: int = 2, ...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/bigvgan.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.221557
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. # Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. import os import json from pathlib import Path from typing import Optional, Union, Dict import torch import torch.nn as nn f...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/discriminators.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.243879
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. # Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. import torch import torch.nn.functional as F import torch.nn as nn from torch.nn import Conv2d from torch.nn.utils import we...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/inference_e2e.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.252883
# Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. from __future__ import absolute_import, division, print_function, unicode_literals import glob import os import numpy as np import argparse import json import torch from scipy.io.wavfile import write fr...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/env.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.271466
# Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. import os import shutil class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__init__(*args, **kwargs) self.__dict__ = self def build_env(config, confi...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/loss.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.282521
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. # Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. import torch import torch.nn as nn from librosa.filters import mel as librosa_mel_fn from scipy import signal import typing...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/tests/test_activation_snake_beta.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.714012
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. import os import sys # to import modules from parent_dir parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.append(parent_dir) import torch from alias_free_activation.cuda import activation1d from activatio...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/inference.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.714668
# Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. from __future__ import absolute_import, division, print_function, unicode_literals import os import argparse import json import torch import librosa from utils import load_checkpoint from meldataset imp...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/tests/test_cuda_vs_torch_model.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.715113
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. import os import sys # to import modules from parent_dir parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.append(parent_dir) import torch import json from env import AttrDict from bigvgan import BigVGAN f...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/tests/test_activation.py
null
null
null
null
null
null
Python
2026-05-04T02:18:08.715718
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. import os import sys # to import modules from parent_dir parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.append(parent_dir) import torch from alias_free_activation.cuda import activation1d from activatio...
RVC-Boss/GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
null
null
null
null
57,149
null
null
mit
null
null
null
null
null
null
null
GPT_SoVITS/BigVGAN/meldataset.py
null
null
null
null
null
null
Python
2026-05-04T02:18:09.205155
# Copyright (c) 2024 NVIDIA CORPORATION. # Licensed under the MIT license. # Adapted from https://github.com/jik876/hifi-gan under the MIT license. # LICENSE is in incl_licenses directory. import math import os import random import torch import torch.utils.data import numpy as np import librosa from librosa.filte...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/base.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.447075
from uuid import uuid4 from fastapi import Request from app.config import config from app.models.exception import HttpException def get_task_id(request: Request): task_id = request.headers.get("x-task-id") if not task_id: task_id = uuid4() return str(task_id) def get_api_key(request: Request):...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/manager/redis_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.462088
import json from typing import Dict import redis from app.controllers.manager.base_manager import TaskManager from app.models.schema import VideoParams from app.services import task as tm FUNC_MAP = { "start": tm.start, # 'start_test': tm.start_test } class RedisTaskManager(TaskManager): def __init__(s...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/asgi.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.462631
"""Application implementation - ASGI.""" import os from fastapi import FastAPI, Request from fastapi.exceptions import RequestValidationError from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import JSONResponse from fastapi.staticfiles import StaticFiles from loguru import logger from app.co...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/manager/base_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.468426
import threading from typing import Any, Callable, Dict class TaskManager: def __init__(self, max_concurrent_tasks: int): self.max_concurrent_tasks = max_concurrent_tasks self.current_tasks = 0 self.lock = threading.Lock() self.queue = self.create_queue() def create_queue(self...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/config/config.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.471367
import os import shutil import socket import toml from loguru import logger root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) config_file = f"{root_dir}/config.toml" def load_config(): # fix: IsADirectoryError: [Errno 21] Is a directory: '/MoneyPrinterTurbo/config.toml' ...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/v1/base.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.472551
from fastapi import APIRouter def new_router(dependencies=None): router = APIRouter() router.tags = ["V1"] router.prefix = "/api/v1" # 将认证依赖项应用于所有路由 if dependencies: router.dependencies = dependencies return router
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/manager/memory_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.482534
from queue import Queue from typing import Dict from app.controllers.manager.base_manager import TaskManager class InMemoryTaskManager(TaskManager): def create_queue(self): return Queue() def enqueue(self, task: Dict): self.queue.put(task) def dequeue(self): return self.queue.ge...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/config/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.512886
import os import sys from loguru import logger from app.config import config from app.utils import utils def __init_logger(): # _log_file = utils.storage_dir("logs/server.log") _lvl = config.log_level root_dir = os.path.dirname( os.path.dirname(os.path.dirname(os.path.realpath(__file__))) ) ...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/ping.py
null
null
null
null
null
null
Python
2026-05-04T02:18:11.513526
from fastapi import APIRouter, Request router = APIRouter() @router.get( "/ping", tags=["Health Check"], description="检查服务可用性", response_description="pong", ) def ping(request: Request) -> str: return "pong"
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/models/exception.py
null
null
null
null
null
null
Python
2026-05-04T02:18:13.609745
import traceback from typing import Any from loguru import logger class HttpException(Exception): def __init__( self, task_id: str, status_code: int, message: str = "", data: Any = None ): self.message = message self.status_code = status_code self.data = data # Retriev...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/router.py
null
null
null
null
null
null
Python
2026-05-04T02:18:13.611599
"""Application configuration - root APIRouter. Defines all FastAPI application endpoints. Resources: 1. https://fastapi.tiangolo.com/tutorial/bigger-applications """ from fastapi import APIRouter from app.controllers.v1 import llm, video root_api_router = APIRouter() # v1 root_api_router.include_router(video....
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/v1/llm.py
null
null
null
null
null
null
Python
2026-05-04T02:18:13.612708
from fastapi import Request from app.controllers.v1.base import new_router from app.models.schema import ( VideoScriptRequest, VideoScriptResponse, VideoTermsRequest, VideoTermsResponse, ) from app.services import llm from app.utils import utils # authentication dependency # router = new_router(depend...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/models/schema.py
null
null
null
null
null
null
Python
2026-05-04T02:18:13.613806
import warnings from enum import Enum from typing import Any, List, Optional, Union import pydantic from pydantic import BaseModel from app.config import config # 忽略 Pydantic 的特定警告 warnings.filterwarnings( "ignore", category=UserWarning, message="Field name.*shadows an attribute in parent.*", ) class V...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/models/const.py
null
null
null
null
null
null
Python
2026-05-04T02:18:13.616065
PUNCTUATIONS = [ "?", ",", ".", "、", ";", ":", "!", "…", "?", ",", "。", "、", ";", ":", "!", "...", ] TASK_STATE_FAILED = -1 TASK_STATE_COMPLETE = 1 TASK_STATE_PROCESSING = 4 FILE_TYPE_VIDEOS = ["mp4", "mov", "mkv", "webm"] FILE_TYPE_IMAGES = ["jpg", "jpe...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/controllers/v1/video.py
null
null
null
null
null
null
Python
2026-05-04T02:18:13.617084
import glob import os import pathlib import shutil from typing import Union from fastapi import BackgroundTasks, Depends, Path, Request, UploadFile from fastapi.params import File from fastapi.responses import FileResponse, StreamingResponse from loguru import logger from app.config import config from app.controllers...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/state.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.149788
import ast from abc import ABC, abstractmethod from app.config import config from app.models import const # Base class for state management class BaseState(ABC): @abstractmethod def update_task(self, task_id: str, state: int, progress: int = 0, **kwargs): pass @abstractmethod def get_task(se...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/task.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.151172
import math import os.path import re from os import path from loguru import logger from app.config import config from app.models import const from app.models.schema import VideoConcatMode, VideoParams from app.services import llm, material, subtitle, video, voice, upload_post from app.services import state as sm from...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/subtitle.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.168880
import json import os.path import re from timeit import default_timer as timer try: from faster_whisper import WhisperModel except ImportError: WhisperModel = None from loguru import logger from app.config import config from app.utils import utils model_size = config.whisper.get("model_size", "large-v3") dev...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/utils/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.169946
import json import locale import os from pathlib import Path import threading from typing import Any from uuid import uuid4 import urllib3 from loguru import logger from app.models import const urllib3.disable_warnings() def get_response(status: int, data: Any = None, message: str = ""): obj = { "statu...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/utils/video_effects.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.172926
from moviepy import Clip, ColorClip, CompositeVideoClip, vfx # FadeIn def fadein_transition(clip: Clip, t: float) -> Clip: return clip.with_effects([vfx.FadeIn(t)]) # FadeOut def fadeout_transition(clip: Clip, t: float) -> Clip: return clip.with_effects([vfx.FadeOut(t)]) # SlideIn def slidein_transition(c...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/upload_post.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.173726
""" Upload-Post API integration for cross-posting videos to TikTok and Instagram. Docs: https://docs.upload-post.com """ import os import requests from loguru import logger from app.config import config class UploadPostService: """ Service for cross-posting videos to TikTok/Instagram via Upload-Post API. ...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/video.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.175035
import glob import itertools import os import random import gc import shutil import subprocess from typing import List from loguru import logger from moviepy import ( AudioFileClip, ColorClip, CompositeAudioClip, CompositeVideoClip, ImageClip, TextClip, VideoFileClip, afx, ) from moviepy...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/voice.py
null
null
null
null
null
null
Python
2026-05-04T02:18:16.209698
import asyncio import inspect import math import os import re from datetime import datetime from typing import Union from xml.sax.saxutils import unescape import edge_tts import requests from edge_tts import SubMaker, submaker from loguru import logger from moviepy.video.tools import subtitles from moviepy.audio.io.Au...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
test/services/test_task.py
null
null
null
null
null
null
Python
2026-05-04T02:18:17.175479
import unittest import os import sys from pathlib import Path # add project root to python path sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from app.services import task as tm from app.models.schema import MaterialInfo, VideoParams resources_dir = os.path.join(os.path.dirname(os.path.dirname(__file_...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
main.py
null
null
null
null
null
null
Python
2026-05-04T02:18:17.177433
import uvicorn from loguru import logger from app.config import config if __name__ == "__main__": logger.info( "start server, docs: http://127.0.0.1:" + str(config.listen_port) + "/docs" ) uvicorn.run( app="app.asgi:app", host=config.listen_host, port=config.listen_port, ...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
test/services/test_video.py
null
null
null
null
null
null
Python
2026-05-04T02:18:17.177984
import unittest import os import sys from pathlib import Path from moviepy import ( VideoFileClip, ) # add project root to python path sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from app.models.schema import MaterialInfo from app.services import video as vd from app.utils import utils resources_...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
test/services/test_voice.py
null
null
null
null
null
null
Python
2026-05-04T02:18:17.210750
import asyncio import unittest import os import sys import tempfile from pathlib import Path from unittest.mock import patch # add project root to python path sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from app.utils import utils from app.services import voice as vs from app.services import task as ...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
webui/Main.py
null
null
null
null
null
null
Python
2026-05-04T02:18:17.944932
import os import platform import sys from uuid import uuid4 import streamlit as st from loguru import logger # Add the root directory of the project to the system path to allow importing modules from the project root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) if root_dir not in sys.path: s...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/llm.py
null
null
null
null
null
null
Python
2026-05-04T02:18:22.336440
import json import logging import re import requests from typing import List import g4f from loguru import logger from openai import AzureOpenAI, OpenAI from openai.types.chat import ChatCompletion from app.config import config _max_retries = 5 _DEFAULT_GEMINI_MODEL = "gemini-2.5-flash" _DEPRECATED_GEMINI_MODELS = {...
harry0703/MoneyPrinterTurbo
https://github.com/harry0703/MoneyPrinterTurbo
null
null
null
null
56,679
null
null
mit
null
null
null
null
null
null
null
app/services/material.py
null
null
null
null
null
null
Python
2026-05-04T02:18:22.347785
import os import random import threading from typing import List from urllib.parse import urlencode import requests from loguru import logger from moviepy.video.io.VideoFileClip import VideoFileClip from app.config import config from app.models.schema import MaterialInfo, VideoAspect, VideoConcatMode from app.utils i...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/blink_detection.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.572845
#!/usr/bin/env python3 # This is a demo of detecting eye status from the users camera. If the users eyes are closed for EYES_CLOSED seconds, the system will start printing out "EYES CLOSED" # to the terminal until the user presses and holds the spacebar to acknowledge # this demo must be run with sudo privileges for...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.574564
import timeit # Note: This example is only tested with Python 3 (not Python 2) # This is a very simple benchmark to give you an idea of how fast each step of face recognition will run on your system. # Notice that face detection gets very slow at large image sizes. So you might consider running face detection on a # ...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/face_distance.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.575877
import face_recognition # Often instead of just checking if two faces match or not (True or False), it's helpful to see how similar they are. # You can do that by using the face_distance function. # The model was trained in a way that faces with a distance of 0.6 or less should be a match. But if you want to # be mor...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/face_recognition_svm.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.577650
# Train multiple images per person # Find and recognize faces in an image using a SVC with scikit-learn """ Structure: <test_image>.jpg <train_dir>/ <person_1>/ <person_1_face-1>.jpg <person_1_face-2>.jpg . . <p...
ageitgey/face_recognition
https://github.com/ageitgey/face_recognition
null
null
null
null
56,369
null
null
mit
null
null
null
null
null
null
null
examples/face_recognition_knn.py
null
null
null
null
null
null
Python
2026-05-04T02:18:24.578996
""" This is an example of using the k-nearest-neighbors (KNN) algorithm for face recognition. When should I use this example? This example is useful when you wish to recognize a large set of known people, and make a prediction for an unknown person in a feasible computation time. Algorithm Description: The knn classi...