Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 332 for models3 (0.49 seconds)

  1. docs_src/events/tutorial003_py39.py

        return x * 42
    
    
    ml_models = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        # Load the ML model
        ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model
        yield
        # Clean up the ML models and release the resources
        ml_models.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/predict")
    async def predict(x: float):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 569 bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/body.md

    Mejora el soporte del editor para modelos de Pydantic, con:
    
    * autocompletado
    * chequeo de tipos
    * refactorización
    * búsqueda
    * inspecciones
    
    ///
    
    ## Usa el modelo { #use-the-model }
    
    Dentro de la función, puedes acceder a todos los atributos del objeto modelo directamente:
    
    {* ../../docs_src/body/tutorial002_py310.py *}
    
    /// info | Información
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  3. scripts/playwright/query_param_models/image01.py

        page.get_by_role("button", name="Try it out").click()
        page.get_by_role("heading", name="Servers").click()
        # Manually add the screenshot
        page.screenshot(path="docs/en/docs/img/tutorial/query-param-models/image01.png")
    
        # ---------------------
        context.close()
        browser.close()
    
    
    process = subprocess.Popen(
        ["fastapi", "run", "docs_src/query_param_models/tutorial001.py"]
    )
    try:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  4. RELEASE.md

        *   `Model.fit_generator`, `Model.evaluate_generator`,
            `Model.predict_generator`, `Model.train_on_batch`,
            `Model.test_on_batch`, and `Model.predict_on_batch` methods now respect
            the `run_eagerly` property, and will correctly run using `tf.function`
            by default. Note that `Model.fit_generator`, `Model.evaluate_generator`,
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Tue Oct 28 22:27:41 GMT 2025
    - 740.4K bytes
    - Click Count (3)
  5. api/maven-api-toolchain/src/main/mdo/toolchains.mdo

      specific language governing permissions and limitations
      under the License.
    
    -->
    <model xmlns="http://codehaus-plexus.github.io/MODELLO/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://codehaus-plexus.github.io/MODELLO/2.0.0 https://codehaus-plexus.github.io/modello/xsd/modello-2.0.0.xsd"
      xml.namespace="http://maven.apache.org/TOOLCHAINS/${version}"
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun May 18 09:15:56 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  6. docs/ja/docs/tutorial/response-model.md

    ## ドキュメントを見る
    
    自動ドキュメントを見ると、入力モデルと出力モデルがそれぞれ独自のJSON Schemaを持っていることが確認できます。
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png">
    
    そして、両方のモデルは、対話型のAPIドキュメントに使用されます:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png">
    
    ## レスポンスモデルのエンコーディングパラメータ
    
    レスポンスモデルにはデフォルト値を設定することができます:
    
    {* ../../docs_src/response_model/tutorial004.py hl[11,13,14] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 9K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/site/apt/super-pom.apt.vm

    ~~ under the License.
    
     -----
     Super POM
     -----
     Hervé Boutemy
     -----
     2011-09-12
     -----
    
    Super POM
    
     All models implicitly inherit from a super-POM:
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1K bytes
    - Click Count (0)
  8. docs/es/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    No está soportado por Pydantic tener un modelo de Pydantic v2 con sus propios campos definidos como modelos de Pydantic v1 o viceversa.
    
    ```mermaid
    graph TB
        subgraph "❌ Not Supported"
            direction TB
            subgraph V2["Pydantic v2 Model"]
                V1Field["Pydantic v1 Model"]
            end
            subgraph V1["Pydantic v1 Model"]
                V2Field["Pydantic v2 Model"]
            end
        end
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:16:35 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  9. docs/zh/docs/tutorial/response-model.md

    因此,**FastAPI** 将会负责过滤掉未在输出模型中声明的所有数据(使用 Pydantic)。
    
    ## 在文档中查看
    
    当你查看自动化文档时,你可以检查输入模型和输出模型是否都具有自己的 JSON Schema:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png">
    
    并且两种模型都将在交互式 API 文档中使用:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png">
    
    ## 响应模型编码参数
    
    你的响应模型可以具有默认值,例如:
    
    {* ../../docs_src/response_model/tutorial004.py hl[11,13:14] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  10. docs/en/docs/release-notes.md

    @app.get("/items/")
    async def read_items(filter_query: Annotated[FilterParams, Query()]):
        return filter_query
    ```
    
    Read the new docs: [Query Parameter Models](https://fastapi.tiangolo.com/tutorial/query-param-models/).
    
    #### `Header` Parameter Models
    
    Use Pydantic models for `Header` parameters:
    
    ```python
    from typing import Annotated
    
    from fastapi import FastAPI, Header
    from pydantic import BaseModel
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
Back to Top