開始使用免費開始

加入 API 說明標頭

你想在企鵝分類 API 中加入一段說明標頭。

本練習屬於課程

使用 FastAPI 將 AI 佈署到生產環境

檢視課程

練習說明

  • 在 API 定義中加入說明。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

from fastapi import FastAPI

app = FastAPI(
    # Add a description
    ____="API for penguin classification"
)
編輯並執行程式碼