Spaces:
Runtime error
Runtime error
File size: 299 Bytes
b6cbf9a 6c69fdb b6cbf9a 8d97c72 6c69fdb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from fastapi import FastAPI
from transformers import pipeline
import numpy as np
# Create a new FastAPI app instance
app = FastAPI()
pipe = pipeline(model="mat27/medmnistPrueba")
@app.get("/generate")
def generate(imagen: np.array):
output = pipe(imagen)
return {"output": output} |