-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathdemo.py
More file actions
24 lines (17 loc) · 752 Bytes
/
demo.py
File metadata and controls
24 lines (17 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ---------------------------------------------------------------------
# Copyright (c) 2025 Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause
# ---------------------------------------------------------------------
# THIS FILE WAS AUTO-GENERATED. DO NOT EDIT MANUALLY.
from __future__ import annotations
from qai_hub_models.models._shared.bert_hf.demo import bert_demo
from qai_hub_models.models.distil_bert_base_uncased_hf.model import (
MODEL_ID,
DistilbertBase,
)
DEMO_TEXT = "Paris is the [MASK] of France."
def main(is_test: bool = False) -> None:
"""Demo for BERT base uncased model"""
bert_demo(DistilbertBase, MODEL_ID, DEMO_TEXT, is_test)
if __name__ == "__main__":
main()