Spaces:
Runtime error
Runtime error
import os | |
os.system('git clone https://github.com/modelscope/swift.git') | |
os.system('pip install ./swift["llm"]') | |
os.system('pip install evalscope[all]>=0.5.2') | |
os.system('pip install huggingface_hub trl accelerate peft transformers -U') | |
os.system('rm -rf /mnt/workspace/.cache/modelscope/hub/*') | |
os.system(f'rm -rf {os.path.expanduser("~")}/.cache/modelscope/hub/*') | |
os.system('pip install tf-keras') | |
from swift.ui.app import webui_main | |
if __name__ == '__main__': | |
webui_main() |