Spaces:
Running
Running
David Krajewski
commited on
Commit
·
984e1f6
1
Parent(s):
ae2d0a0
print lib dir
Browse files
app.py
CHANGED
@@ -649,10 +649,19 @@ class Drag:
|
|
649 |
with gr.Blocks() as demo:
|
650 |
import os
|
651 |
# import nvidia.cublas.lib
|
652 |
-
import nvidia.cudnn.lib
|
653 |
-
# print(os.path.dirname(nvidia.cublas.lib.__file__))
|
654 |
-
print(os.path.dirname(nvidia.cudnn.lib.__file__))
|
655 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
656 |
|
657 |
gr.Markdown("""<h1 align="center">MOFA-Video</h1><br>""")
|
658 |
|
|
|
649 |
with gr.Blocks() as demo:
|
650 |
import os
|
651 |
# import nvidia.cublas.lib
|
652 |
+
# import nvidia.cudnn.lib
|
653 |
+
# # print(os.path.dirname(nvidia.cublas.lib.__file__))
|
654 |
+
# print(os.path.dirname(nvidia.cudnn.lib.__file__))
|
655 |
|
656 |
+
import os
|
657 |
+
|
658 |
+
folder_path = "/usr/local/lib/python3.10/site-packages/nvidia/cudnn/lib"
|
659 |
+
if os.path.exists(folder_path) and os.path.isdir(folder_path):
|
660 |
+
print(f"Contents of the folder '{folder_path}':")
|
661 |
+
for item in os.listdir(folder_path):
|
662 |
+
print(item)
|
663 |
+
else:
|
664 |
+
print(f"The folder '{folder_path}' does not exist or is not a directory.")
|
665 |
|
666 |
gr.Markdown("""<h1 align="center">MOFA-Video</h1><br>""")
|
667 |
|