mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-09-19 03:55:53 +08:00
Update gradio_demo.py
使用huggingface下载模型路径
This commit is contained in:
parent
239d912b6f
commit
b158fbdadd
@ -17,7 +17,7 @@ import PIL
|
||||
|
||||
dtype = torch.bfloat16
|
||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||
pipe = CogVideoXPipeline.from_pretrained("/share/home/zyx/Models/cogvideox-hf-0805", torch_dtype=dtype).to(device)
|
||||
pipe = CogVideoXPipeline.from_pretrained("THUDM/CogVideoX-2b", torch_dtype=dtype).to(device)
|
||||
|
||||
sys_prompt = """You are part of a team of bots that creates videos. You work with an assistant bot that will draw anything you say in square brackets.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user