Spaces:
Running
Running
yjwtheonly
commited on
Commit
•
693e74a
1
Parent(s):
6a35b26
modification
Browse files
server.py
CHANGED
@@ -480,7 +480,7 @@ def generate_specific_attack_edge(start_entity, end_entity):
|
|
480 |
|
481 |
if not torch.cuda.is_available():
|
482 |
print('We can just set the malicious link equals to the target link, since the generation of malicious link is too slow on cpu')
|
483 |
-
return start_entity, '10', end_entity
|
484 |
global specific_model
|
485 |
|
486 |
specific_model.to(device)
|
|
|
480 |
|
481 |
if not torch.cuda.is_available():
|
482 |
print('We can just set the malicious link equals to the target link, since the generation of malicious link is too slow on cpu')
|
483 |
+
return entity_to_id[drug_dict[start_entity]], '10', entity_to_id[disease_dict[end_entity]]
|
484 |
global specific_model
|
485 |
|
486 |
specific_model.to(device)
|