Spaces:
Runtime error
Runtime error
File size: 255 Bytes
98de6bd 29fafe3 7e8d5a0 4073f79 98de6bd 64a27af 4073f79 ff981ea 64a27af |
1 2 3 4 5 6 7 8 9 10 11 |
import numpy as np
import time
from fastapi import FastAPI
from transformers import pipeline
app = FastAPI()
pipe = pipeline(model="mat27/medmnistPrueba")
@app.get("/generate")
def generate(example: np.array):
output = pipe(example)
print(output) |