toto10's picture
Upload folder using huggingface_hub (#1)
34097e9
raw
history blame
No virus
394 Bytes
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')