Changes to allow torch to work with phoenix_html >= 4.0
#452
+46
−40
phoenix_html >= 4.0
#452