Views
No views yet
1from transformers import pipeline
2
3pipe = pipeline(
4 "text-generation",
5 model="ChengManYu/qwen2-1.5b-ppt-outline-merged",
6 device_map="auto"
7)
8
9prompt = "Generate PPT outline for: AI in healthcare\n### Outline:"
10output = pipe(prompt, max_new_tokens=400, temperature=0.7)[0]["generated_text"]
11print(output.split("### Outline:")[-1])