Spaces:
Sleeping
Sleeping
Update controlled_summarization.py
Browse files
controlled_summarization.py
CHANGED
@@ -11,7 +11,7 @@ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
|
11 |
acl_data = load_dataset("dyxohjl666/CocoScisum_ACL", revision="refs/convert/parquet")
|
12 |
device = "gpu" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
-
ctrlsum_pipeline = Summarization(os_name="nt",checkpoint="dyxohjl666/flant5-xl-cocoscisum",device=device)
|
15 |
|
16 |
acl_dict = {}
|
17 |
recommended_kw = {}
|
|
|
11 |
acl_data = load_dataset("dyxohjl666/CocoScisum_ACL", revision="refs/convert/parquet")
|
12 |
device = "gpu" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
+
ctrlsum_pipeline = Summarization(os_name="nt",model_name="flan-t5-xl",checkpoint="dyxohjl666/flant5-xl-cocoscisum",device=device)
|
15 |
|
16 |
acl_dict = {}
|
17 |
recommended_kw = {}
|