Newer
Older
stable_diffusion_runner / ai_server.py
# conda activate PyTorch

# 起動コマンドは下記の通り
# uvicorn ai_server:app --reload

import torch

from fastapi import FastAPI
app = FastAPI()

@app.get("/")
async def hello():
    return {"message" : "Hello,World"}