```python ti fastapi import FastAPI app = FastAPI() @app.get("/") def hello_world(): balikkeun "<h1>Hello, world!</h1>" upami __name__ == "__main__": app.run(debug=True) ``` Dina kode di luhur, kelas `FastAPI diimpor ti modul `fastapi`. Hiji conto kelas `FastAPI` teras didamel sareng disimpen dina variabel aplikasi. The `@app.get("/") ` dekorator nyiptakeun rute pikeun URL akar ("bug/") sareng mulangkeun string `"<h1>Hello, world!h1>"` salaku réspon.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence