Skip to content

Commit 8302586

Browse files
author
Bryannah Hernandez
committed
placement
1 parent 8eda8b5 commit 8302586

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sagemaker/serve/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
import logging
66
import importlib.util
7+
import uvicorn
8+
9+
from transformers import pipeline
10+
from fastapi import FastAPI, Request
711

812
if not importlib.util.find_spec("uvicorn"):
913
raise ImportError("Unable to import uvicorn, check if uvicorn is installed")
@@ -14,10 +18,6 @@
1418
if not importlib.util.find_spec("fastapi"):
1519
raise ImportError("Unable to import fastapi, check if fastapi is installed")
1620

17-
import uvicorn
18-
from transformers import pipeline
19-
from fastapi import FastAPI, Request
20-
2121

2222
logger = logging.getLogger(__name__)
2323

0 commit comments

Comments
 (0)