hpoghos radames commited on
Commit
b3f6435
1 Parent(s): 6dc65c4

fix spaces zero torch jit hack (#2)

Browse files

- fix spaces zero torch jit hack (cb8695e14a2fedefae09e61bb96edd6298f02677)


Co-authored-by: Radamés Ajna <radames@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import torch
 
 
2
  import spaces
3
  import gradio as gr
4
  from diffusers import StableDiffusionPipeline
 
1
  import torch
2
+ torch.jit.script = lambda f: f
3
+
4
  import spaces
5
  import gradio as gr
6
  from diffusers import StableDiffusionPipeline