Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1831 - 1840 of 1,989 for py$ (0.03 sec)

  1. ci/official/libtensorflow.sh

      tfrun nvidia-smi
    fi
    
    # Update the version numbers for Nightly only
    if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then
      tfrun python3 tensorflow/tools/ci_build/update_version.py --nightly
    fi
    
    tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS test $TFCI_BAZEL_COMMON_ARGS --config=linux_libtensorflow_test
    tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS build $TFCI_BAZEL_COMMON_ARGS --config=linux_libtensorflow_build
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Jan 19 19:07:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/behind-a-proxy.md

    ///
    
    ### 查看当前的 `root_path`
    
    获取应用为每个请求使用的当前 `root_path`,这是 `scope` 字典的内容(也是 ASGI 规范的内容)。
    
    我们在这里的信息里包含 `roo_path` 只是为了演示。
    
    ```Python hl_lines="8"
    {!../../docs_src/behind_a_proxy/tutorial001.py!}
    ```
    
    然后,用以下命令启动 Uvicorn:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. docs/ko/docs/advanced/events.md

    ```Python hl_lines="8"
    {!../../docs_src/events/tutorial001.py!}
    ```
    
    이 경우 `startup` 이벤트 핸들러 함수는 단순히 몇 가지 값으로 구성된 `dict` 형식의 "데이터베이스"를 초기화합니다.
    
    하나 이상의 이벤트 핸들러 함수를 추가할 수도 있습니다.
    
    그리고 응용 프로그램은 모든 `startup` 이벤트 핸들러가 완료될 때까지 요청을 받지 않습니다.
    
    ## `shutdown` 이벤트
    
    응용 프로그램이 종료될 때 실행하려는 함수를 추가하려면 `"shutdown"` 이벤트로 선언합니다:
    
    ```Python hl_lines="6"
    {!../../docs_src/events/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. docs/az/docs/index.md

    </div>
    
    <details markdown="1">
    <summary><code>uvicorn main:app --reload</code> əmri haqqında...</summary>
    
    `uvicorn main:app` əmri aşağıdakılara instinad edir:
    
    * `main`: `main.py` faylı (yəni Python "modulu").
    * `app`: `main.py` faylında `app = FastAPI()` sətrində yaratdığımız `FastAPI` obyektidir.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. docs/it/docs/index.md

    <details markdown="1">
    <summary>Informazioni sul comando <code>uvicorn main:app --reload</code>...</summary>
    
    Vediamo il comando `uvicorn main:app` in dettaglio:
    
    * `main`: il file `main.py` (il "modulo" Python).
    * `app`: l'oggetto creato dentro `main.py` con la riga di codice `app = FastAPI()`.
    * `--reload`: ricarica il server se vengono rilevati cambiamenti del codice. Usalo solo durante la fase di sviluppo.
    
    </details>
    
    ### Testa l'API
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. configure.cmd

    :: License for the specific language governing permissions and limitations under
    :: the License.
    
    @echo off
    
    set configure_dir=%~dp0
    set configure_dir=%configure_dir:~0,-1%
    python "%configure_dir%\configure.py" %* || ( exit /b )
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 11 09:27:42 UTC 2020
    - 782 bytes
    - Viewed (0)
  7. .github/actions/people/Dockerfile

    FROM python:3.9
    
    RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"
    
    COPY ./app /app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 14:12:28 UTC 2023
    - 156 bytes
    - Viewed (0)
  8. docs/es/docs/advanced/response-change-status-code.md

    Y luego puedes establecer el `status_code` en ese objeto de respuesta *temporal*.
    
    ```Python hl_lines="1  9  12"
    {!../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    Y luego puedes retornar cualquier objeto que necesites, como normalmente lo harías (un `dict`, un modelo de base de datos, etc).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. ci/official/utilities/cleanup_summary.sh

      PYTHON_BIN=$(which python3 2>/dev/null || which python)
      XML_PATH="$TFCI_OUTPUT_DIR/Bazel_Test_and_Build_Results/sponge_log.xml"
    
      "$PYTHON_BIN" \
        "$TFCI_GIT_DIR/ci/official/utilities/extract_resultstore_links.py" \
        "$TFCI_OUTPUT_DIR/script.log" \
        --print \
        --xml-out-path "$XML_PATH"
    }
    
    if grep -q "Streaming build results to" "$TFCI_OUTPUT_DIR/script.log"; then
      resultstore_extract || resultstore_extract_fallback
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Aug 07 23:01:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. docs/fr/docs/deployment/docker.md

    EXPOSE 80
    
    COPY ./app /app
    
    CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
    ```
    
    ## Créer le code **FastAPI**.
    
    * Créer un répertoire `app` et y entrer.
    * Créez un fichier `main.py` avec :
    
    ```Python
    from typing import Optional
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top