diffsketcher / app.py
jree423's picture
Upload app.py with huggingface_hub
f9f7f17 verified
raw
history blame
272 Bytes
from fastapi import FastAPI, Request
from handler import EndpointHandler
import os
app = FastAPI()
handler = EndpointHandler(os.getcwd())
@app.post("/")
async def process_request(request: Request):
json_data = await request.json()
return handler(json_data)