Spaces:
Sleeping
Sleeping
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>
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
|