whisper-api / main.py
ayaanzaveri's picture
Duplicate from lanbogao/docker_fastapi
f46c80d
raw
history blame
No virus
240 Bytes
from fastapi import FastAPI
from fastapi.responses import JSONResponse
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World!"}
@app.get("/json")
def read_json():
return JSONResponse(content={"Hello": "World!"})