Spaces:
Paused
Paused
IceClear
commited on
Commit
·
7a45a2b
1
Parent(s):
631d19b
update
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@
|
|
| 11 |
# // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
# // See the License for the specific language governing permissions and
|
| 13 |
# // limitations under the License.
|
|
|
|
| 14 |
|
| 15 |
import os
|
| 16 |
import torch
|
|
@@ -58,8 +59,6 @@ import gradio as gr
|
|
| 58 |
from pathlib import Path
|
| 59 |
from urllib.parse import urlparse
|
| 60 |
from torch.hub import download_url_to_file, get_dir
|
| 61 |
-
from spaces import GPU
|
| 62 |
-
|
| 63 |
|
| 64 |
def load_file_from_url(url, model_dir=None, progress=True, file_name=None):
|
| 65 |
"""Load file form http url, will download models if necessary.
|
|
|
|
| 11 |
# // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
# // See the License for the specific language governing permissions and
|
| 13 |
# // limitations under the License.
|
| 14 |
+
from spaces import GPU
|
| 15 |
|
| 16 |
import os
|
| 17 |
import torch
|
|
|
|
| 59 |
from pathlib import Path
|
| 60 |
from urllib.parse import urlparse
|
| 61 |
from torch.hub import download_url_to_file, get_dir
|
|
|
|
|
|
|
| 62 |
|
| 63 |
def load_file_from_url(url, model_dir=None, progress=True, file_name=None):
|
| 64 |
"""Load file form http url, will download models if necessary.
|