Commit f2ed6295 authored by Vladimir Mandic's avatar Vladimir Mandic Committed by GitHub

make it module specific

parent fc4d593b
...@@ -19,7 +19,7 @@ startup_timer = timer.Timer() ...@@ -19,7 +19,7 @@ startup_timer = timer.Timer()
import torch import torch
import pytorch_lightning # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them import pytorch_lightning # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
warnings.filterwarnings(action="ignore", category=DeprecationWarning) warnings.filterwarnings(action="ignore", category=DeprecationWarning, module="pytorch_lightning")
startup_timer.record("import torch") startup_timer.record("import torch")
import gradio import gradio
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment