Spaces:
Build error
Build error
add jit hack
Browse files
app.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
|
|
|
|
|
| 1 |
# General
|
| 2 |
import os
|
| 3 |
from os.path import join as opj
|
| 4 |
import argparse
|
| 5 |
import datetime
|
| 6 |
from pathlib import Path
|
| 7 |
-
import torch
|
| 8 |
# import spaces
|
| 9 |
import gradio as gr
|
| 10 |
import tempfile
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
torch.jit.script = lambda f: f
|
| 3 |
# General
|
| 4 |
import os
|
| 5 |
from os.path import join as opj
|
| 6 |
import argparse
|
| 7 |
import datetime
|
| 8 |
from pathlib import Path
|
|
|
|
| 9 |
# import spaces
|
| 10 |
import gradio as gr
|
| 11 |
import tempfile
|