osanseviero
commited on
Commit
·
9dbb9e5
1
Parent(s):
3c133a5
Create inference_server.py
Browse files- inference_server.py +10 -0
inference_server.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import uvicorn
|
2 |
+
from fastapi import FastAPI
|
3 |
+
|
4 |
+
app = FastAPI()
|
5 |
+
|
6 |
+
# Here you can do things such as load your models
|
7 |
+
|
8 |
+
@app.get("/")
|
9 |
+
def read_root(input_text):
|
10 |
+
return {f"Hello {input_text}!"}
|