The sentence “They were seen repairing the machine.” is best translated into “他们被看见在修理机器。”.