Spaces:
Running
Running
yjwtheonly
commited on
Commit
•
6a35b26
1
Parent(s):
f4725ed
modification
Browse files
server.py
CHANGED
@@ -478,7 +478,7 @@ sorted_rank['merged'] = sorted_rank['merged'][llen * 3 // 4 : ]
|
|
478 |
|
479 |
def generate_specific_attack_edge(start_entity, end_entity):
|
480 |
|
481 |
-
if
|
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
|
|
|
478 |
|
479 |
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
|