GGML | PyTorch | |
---|---|---|
用途 | 機械学習ライブラリ | 機械学習ライブラリ |
言語サポート | C/C++ | Python |
ファイル形式 | GGML,GGUF | .pth ,.pt ,.onnx |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 socket | |
def app(environ, start_response): | |
status_n_headers = ['HTTP/1.1 200 OK', 'Content-Type: text/plain\r\n',] | |
body = ['bytes', 'and', 'more','bytes'] | |
return status_n_headers + body | |
def start_response(): | |
# waiting for web3 |
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 importlib | |
import os | |
ENVIRONMENT_VARIABLE = 'PYDEV_SETTINGS_MODULE' | |
class WSGIHandler: | |
def __init__(self): | |
settings_module = os.environ.get(ENVIRONMENT_VARIABLE) |
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 logging | |
import queue | |
import threading | |
from typing import Type | |
from http_parser.pyparser import HttpParser | |
from gateway import WSGI | |
logger = logging.getLogger(__name__) |
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 | |
from io import StringIO | |
class WSGI: | |
def __init__(self, config): | |
import importlib.util | |
self.config = config |