- Babel
- Case Conversion
- CSS Extended Completions
- DocBlockr
- EditorConfig
- ESLint-Formatter
- GitGutter
- Hex to HSL Color Converter
- HTML-CSS-JS Prettify
- JsFormat
This file contains 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
# Copyright 2024 AI INSIGHT SOLUTIONS INC. | |
import timeit | |
from pathlib import Path | |
import numpy as np | |
import onnx | |
import onnxruntime as rt | |
import torch | |
from onnxruntime.quantization import QuantType, quantize_dynamic |
This file contains 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
from modal import Image, Mount, Stub, asgi_app, gpu, method | |
from PIL import Image as Image2 | |
from typing import List | |
from io import BytesIO | |
from fastapi import FastAPI, Request | |
from surya.model.detection.segformer import load_model as load_det_model, load_processor as load_det_processor | |
from surya.model.recognition.model import load_model as load_rec_model | |
from surya.model.recognition.processor import load_processor as load_rec_processor | |
from surya.ocr import run_ocr | |
import base64 |