from fastapi import FastAPI import subprocess app = FastAPI() subprocess.Popen(['python', 'main.py']) @app.get("/") def greet_json(): return {"Hello": "World!"}