Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
8a36508
1
Parent(s):
0fb713b
Update app.py
Browse files
app.py
CHANGED
@@ -19,11 +19,11 @@ from PIL import Image
|
|
19 |
import gradio as gr
|
20 |
import torch
|
21 |
import zipfile
|
22 |
-
|
|
|
23 |
|
24 |
torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/09/11/15/58/sunset-2739472_1280.jpg', 'sunset.jpg')
|
25 |
|
26 |
-
torch.hub.download_url_to_file('https://github.com/AsuharietYgvar/AppleNeuralHash2ONNX/files/7008624/apple-neural-hash.zip', '.')
|
27 |
|
28 |
with zipfile.ZipFile('apple-neural-hash.zip', 'r') as zip_ref:
|
29 |
zip_ref.extractall('.')
|
|
|
19 |
import gradio as gr
|
20 |
import torch
|
21 |
import zipfile
|
22 |
+
import os
|
23 |
+
os.system('wget https://github.com/AsuharietYgvar/AppleNeuralHash2ONNX/files/7008624/apple-neural-hash.zip')
|
24 |
|
25 |
torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/09/11/15/58/sunset-2739472_1280.jpg', 'sunset.jpg')
|
26 |
|
|
|
27 |
|
28 |
with zipfile.ZipFile('apple-neural-hash.zip', 'r') as zip_ref:
|
29 |
zip_ref.extractall('.')
|