Spaces:
Sleeping
Sleeping
playback enabling
Browse files- conversation.py +2 -1
conversation.py
CHANGED
@@ -192,7 +192,7 @@ class Conversation:
|
|
192 |
def get_path_to_subvideos(self):
|
193 |
print(f"self.video_title {self.video_title}")
|
194 |
print(f"self.path_to_image {self.path_to_img}")
|
195 |
-
return None
|
196 |
if self.video_title is not None and self.path_to_img is not None:
|
197 |
info = video_helper_map[self.video_title]
|
198 |
path = info['path']
|
@@ -202,6 +202,7 @@ class Conversation:
|
|
202 |
vid_index = vid_index.replace('.jpg', '')
|
203 |
ret = f"{prefix}{vid_index}.mp4"
|
204 |
ret = os.path.join(path, ret)
|
|
|
205 |
return ret
|
206 |
elif self.path_to_img is not None:
|
207 |
return self.path_to_img
|
|
|
192 |
def get_path_to_subvideos(self):
|
193 |
print(f"self.video_title {self.video_title}")
|
194 |
print(f"self.path_to_image {self.path_to_img}")
|
195 |
+
# return None
|
196 |
if self.video_title is not None and self.path_to_img is not None:
|
197 |
info = video_helper_map[self.video_title]
|
198 |
path = info['path']
|
|
|
202 |
vid_index = vid_index.replace('.jpg', '')
|
203 |
ret = f"{prefix}{vid_index}.mp4"
|
204 |
ret = os.path.join(path, ret)
|
205 |
+
print(f"final path is {ret}")
|
206 |
return ret
|
207 |
elif self.path_to_img is not None:
|
208 |
return self.path_to_img
|