Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,3 @@ os.environ['TRANSFORMERS_CACHE'] = '/blabla/cache/'
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
pipe = pipeline(model="mat27/medmnistPrueba")
|
| 11 |
-
|
| 12 |
-
def generate(image: np.array):
|
| 13 |
-
"""
|
| 14 |
-
Input: imagen
|
| 15 |
-
"""
|
| 16 |
-
output = pipe(image)
|
| 17 |
-
|
| 18 |
-
return {"output": output[0]}
|
|
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
pipe = pipeline(model="mat27/medmnistPrueba")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|