This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| map = dict() | |
| map[162] = "—" | |
| map[163] = ":" | |
| map[164] = ")" | |
| map[165] = "(" | |
| map[166] = "»" | |
| map[167] = "«" | |
| map[168] = "և" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter as tk | |
| from tkinter import ttk | |
| from threading import Thread | |
| import subprocess | |
| import time | |
| import os | |
| import pyclip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # This model has high quality voice and proccessing time is small | |
| FAVORITE_MODEL="en_US-ryan-low.onnx" | |
| if [[ "$1" == "-h" ]]; then | |
| echo -e " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run ORC on local host with docker | |
| # Download https://github.com/tesseract-ocr/tessdata_best for best quality | |
| # Use -l hye+eng+rus to read Armenian and other languages | |
| # And download tessconfigs, it is a link in repo as @tessconfigs | |
| IMAGE_FULL_PATH= | |
| docker run -it --rm \ | |
| -v /path/to/tessdata_best:/usr/local/share/tessdata/ \ | |
| -v $IMAGE_FULL_PATH:/tmp/img \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func main() { | |
| var ( | |
| height float32 | |
| weight float32 | |
| index float32 | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- Stage 1: The Builder --- | |
| FROM python:3.12-trixie AS builder | |
| WORKDIR /app | |
| # Install build-time dependencies | |
| RUN apt update && apt install -y \ | |
| lsb-release git cmake curl | |
| # Clone and patch the code |
OlderNewer