Spaces:
Running
Running
import torch | |
from torch import nn | |
from typing import Union, Dict | |
from dataclasses import dataclass | |
class Output: | |
pass | |
class Pipeline(nn.Module): | |
def __init__(self, *args, **kwargs): | |
super(Pipeline, self).__init__() | |
self.args = args | |
self.kwargs = kwargs | |
def from_pretrained(cls, ckpt_path, device='cuda', *args, **kwargs): | |
pass | |
def forward(self, *args, **kwargs): | |
pass | |