Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
| 1 |
import spaces
|
| 2 |
import gradio as gr
|
| 3 |
from util import imread, imsave, get_examples
|
|
|
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
default_model = 'ginoro_CpnResNeXt101UNet-fbe875f1a3e5ce2c'
|
| 7 |
|
|
|
|
| 1 |
import spaces
|
| 2 |
import gradio as gr
|
| 3 |
from util import imread, imsave, get_examples
|
| 4 |
+
import torch
|
| 5 |
|
| 6 |
+
def torch_compile(*args, **kwargs):
|
| 7 |
+
def decorator(func):
|
| 8 |
+
return func
|
| 9 |
+
return decorator
|
| 10 |
+
|
| 11 |
+
torch.compile = torch_compile # temporary workaround
|
| 12 |
|
| 13 |
default_model = 'ginoro_CpnResNeXt101UNet-fbe875f1a3e5ce2c'
|
| 14 |
|