wing-nus commited on
Commit
9026f13
1 Parent(s): f870b18

Update controlled_summarization.py

Browse files
Files changed (1) hide show
  1. controlled_summarization.py +1 -1
controlled_summarization.py CHANGED
@@ -4,7 +4,7 @@ from SciAssist import Summarization
4
 
5
  device = "gpu" if torch.cuda.is_available() else "cpu"
6
 
7
- ctrlsum_pipeline = Summarization(os_name="nt",checkpoint="google/flan-t5-base")
8
 
9
 
10
  def ctrlsum_for_str(input,length=None, keywords=None) -> List[Tuple[str, str]]:
 
4
 
5
  device = "gpu" if torch.cuda.is_available() else "cpu"
6
 
7
+ ctrlsum_pipeline = Summarization(os_name="nt",checkpoint="google/flan-t5-base",device=device)
8
 
9
 
10
  def ctrlsum_for_str(input,length=None, keywords=None) -> List[Tuple[str, str]]: