Views
No views yet
1from transformers import pipeline
2
3question = "How does the source suggest clinicians approach the diagnosis of rosacea?"
4
5# Load pipeline
6generator = pipeline(
7 "text-generation",
8 model="kingabzpro/gpt-oss-20b-dermatology-qa",
9 device="cuda" # or device=0
10)
11
12
13# Run inference (passing in chat-style format)
14output = generator(
15 [{"role": "user", "content": question}],
16 max_new_tokens=200,
17 return_full_text=False
18)[0]
19
20print(output["generated_text"])
21
22# The source says that clinicians should use a combination of clinical signs and symptoms when diagnosing rosacea, rather than relying on a single feature.