ysharma HF Staff commited on
Commit
a28eba2
·
1 Parent(s): 826e126

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,9 +6,12 @@ from modelscope.outputs import OutputKeys
6
  image_to_video_pipe = pipeline(task="image-to-video", model='damo/i2vgen-xl', model_revision='v1.1.4', device='cuda:0')
7
 
8
  # Get the current working directory
9
- current_directory = os.getcwd()
 
 
10
  print("Current Working Directory:", current_directory)
11
 
 
12
  def upload_file(file):
13
  return file.name
14
 
 
6
  image_to_video_pipe = pipeline(task="image-to-video", model='damo/i2vgen-xl', model_revision='v1.1.4', device='cuda:0')
7
 
8
  # Get the current working directory
9
+ #current_directory = os.getcwd()
10
+ #print("Current Working Directory:", current_directory)
11
+ current_directory = os.path.dirname(os.path.realpath(__file__))
12
  print("Current Working Directory:", current_directory)
13
 
14
+
15
  def upload_file(file):
16
  return file.name
17