[~] Refactor
This commit is contained in:
		
							parent
							
								
									2f8274297e
								
							
						
					
					
						commit
						3a54f34f6c
					
				| @ -1,4 +1,5 @@ | |||||||
| import celery.app.task | import celery.app.task | ||||||
|  | import os | ||||||
| import asyncio | import asyncio | ||||||
| import inspect | import inspect | ||||||
| import importlib | import importlib | ||||||
| @ -141,11 +142,13 @@ def grid_of_videos(paths: Iterable[str]) -> Any: | |||||||
| 
 | 
 | ||||||
|     grid = GridspecLayout(1, len(paths)) |     grid = GridspecLayout(1, len(paths)) | ||||||
| 
 | 
 | ||||||
|     for i, filepath in enumerate(paths): |     for i, path in enumerate(paths): | ||||||
|  |         assert os.path.exists(path) | ||||||
|  | 
 | ||||||
|         out = Output() |         out = Output() | ||||||
|         with out: |         with out: | ||||||
|             display.display(display.Video( |             display.display(display.Video( | ||||||
|                 url='/files/%s' % filepath, |                 url='/files/%s' % path, | ||||||
|                 #embed=True |                 #embed=True | ||||||
|             )) |             )) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user