ynhe commited on
Commit
e8989f9
·
verified ·
1 Parent(s): cf8d75e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,8 +61,8 @@ def get_video_path_local(model_name, type, prompt):
61
  else:
62
  video_path_subfolder = os.path.join(model_name, type)
63
 
64
- if 'cogvideo' in model_name:
65
- prompt.replace(".mp4",".gif")
66
 
67
  try:
68
  return hf_api.hf_hub_download(
 
61
  else:
62
  video_path_subfolder = os.path.join(model_name, type)
63
 
64
+ if model_name == 'cogvideo':
65
+ prompt = prompt.replace(".mp4",".gif")
66
 
67
  try:
68
  return hf_api.hf_hub_download(