|
Download README.md from IkbeneenEric/ClinicalHistoryModel: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/IkbeneenEric/ClinicalHistoryModel/resolve/main/README.md
- Command line
-
hf download hf://IkbeneenEric/ClinicalHistoryModel/README.md
-
curl -L -o README.md https://huggingface.co/IkbeneenEric/ClinicalHistoryModel/resolve/main/README.md
497 Bytes
| license: mit | |
| language: | |
| - en | |
| pipeline_tag: text-classification | |
| ## How to use model with torch: | |
| ```model_name = "bert-base-uncased" | |
| # Load the tokenizer | |
| tokenizer = AutoTokenizer.from_pretrained(model_name) | |
| # Load the model | |
| model = AutoModel.from_pretrained(model_name) | |
| ``` | |
| ## How to use it on example text: | |
| ``` | |
| # Example input | |
| text = "Hello, how are you?" | |
| # Tokenize the input | |
| inputs = tokenizer(text, return_tensors="pt") | |
| # Forward pass through the model | |
| outputs = model(**inputs) | |
| ``` |