Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for lenet (0.05 sec)

  1. docs_src/path_params/tutorial005.py

    
    class ModelName(str, Enum):
        alexnet = "alexnet"
        resnet = "resnet"
        lenet = "lenet"
    
    
    app = FastAPI()
    
    
    @app.get("/models/{model_name}")
    async def get_model(model_name: ModelName):
        if model_name is ModelName.alexnet:
            return {"model_name": model_name, "message": "Deep Learning FTW!"}
    
        if model_name.value == "lenet":
            return {"model_name": model_name, "message": "LeCNN all the images"}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 26 13:26:03 UTC 2022
    - 546 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_path_params/test_tutorial005.py

                        "input": "foo",
                        "ctx": {"expected": "'alexnet', 'resnet' or 'lenet'"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "ctx": {"enum_values": ["alexnet", "resnet", "lenet"]},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/path-params.md

    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip
    
    You could also access the value `"lenet"` with `ModelName.lenet.value`.
    
    ///
    
    #### Return *enumeration members*
    
    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/path-params.md

    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip | Consejo
    
    También podrías obtener el valor `"lenet"` con `ModelName.lenet.value`.
    
    ///
    
    #### Devuelve *enumeration members*
    
    Puedes devolver *enum members* desde tu *operación de path* inclusive en un body de JSON anidado (por ejemplo, un `dict`).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/path-params.md

    👆 💪 🤚 ☑ 💲 ( `str` 👉 💼) ⚙️ `model_name.value`, ⚖️ 🏢, `your_enum_member.value`:
    
    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip
    
    👆 💪 🔐 💲 `"lenet"` ⏮️ `ModelName.lenet.value`.
    
    ///
    
    #### 📨 *🔢 👨‍🎓*
    
    👆 💪 📨 *🔢 👨‍🎓* ⚪️➡️ 👆 *➡ 🛠️*, 🐦 🎻 💪 (✅ `dict`).
    
    👫 🔜 🗜 👫 🔗 💲 (🎻 👉 💼) ⏭ 🛬 👫 👩‍💻:
    
    ```Python hl_lines="18  21  23"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/path-params.md

    #### 获取*枚举值*
    
    使用 `model_name.value` 或 `your_enum_member.value` 获取实际的值(本例中为**字符串**):
    
    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip | "提示"
    
    使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。
    
    ///
    
    #### 返回*枚举元素*
    
    即使嵌套在 JSON 请求体里(例如, `dict`),也可以从*路径操作*返回*枚举元素*。
    
    返回给客户端之前,要把枚举元素转换为对应的值(本例中为字符串):
    
    ```Python hl_lines="18  21  23"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. docs/fr/docs/tutorial/background-tasks.md

        * Étant donné que se connecter à un serveur et envoyer un email a tendance à être «lent» (plusieurs secondes), vous pouvez retourner la réponse directement et envoyer la notification en arrière-plan.
    * Traiter des données :
        * Par exemple, si vous recevez un fichier qui doit passer par un traitement lent, vous pouvez retourner une réponse «Accepted» (HTTP 202) puis faire le traitement en arrière-plan.
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:29:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/main/resources/fess_indices/fess/hu/stopwords.txt

    hogy
    hogyan
    igen
    így
    illetve
    ill.
    ill
    ilyen
    ilyenkor
    ison
    ismét
    itt
    jó
    jól
    jobban
    kell
    kellett
    keresztül
    keressünk
    ki
    kívül
    között
    közül
    legalább
    lehet
    lehetett
    legyen
    lenne
    lenni
    lesz
    lett
    maga
    magát
    majd
    majd
    már
    más
    másik
    meg
    még
    mellett
    mert
    mely
    melyek
    mi
    mit
    míg
    miért
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Nov 27 12:59:36 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/main/resources/fess_indices/fess/fi/stopwords.txt

    noissa
    noista
    noihin
    noilla
    noilta
    noille
    noina
    noiksi
    ne
    niiden
    niitä
    niissä
    niistä
    niihin
    niillä
    niiltä
    niille
    niinä
    niiksi
    kuka
    kenen
    kenet
    ketä
    kenessä
    kenestä
    keneen
    kenellä
    keneltä
    kenelle
    kenenä
    keneksi
    ketkä
    keiden
    ketkä
    keitä
    keissä
    keistä
    keihin
    keillä
    keiltä
    keille
    keinä
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Nov 27 12:59:36 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. docs/fr/docs/benchmarks.md

    * **Starlette** :
        * A les seconde meilleures performances après Uvicorn. Starlette utilise en réalité Uvicorn. De ce fait, il ne peut qu’être plus "lent" qu'Uvicorn car il requiert l'exécution de plus de code.
        * Cependant il nous apporte les outils pour construire une application web simple, avec un routage basé sur des chemins, etc.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 27 18:49:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top