File size: 394 Bytes
34097e9
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import launch
import os

if not launch.is_installed("send2trash"):
    launch.run_pip("install Send2Trash", "Send2Trash requirement for image browser")

if not launch.is_installed("ImageReward"):
    req_IR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "req_IR.txt")
    launch.run_pip(f'install -r "{req_IR}" --no-deps image-reward', 'ImageReward requirement for image browser')