Spaces:
Running
Running
Update controlled_summarization.py
Browse files
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]]:
|