Ahsen Khaliq commited on
Commit
0a4d8d0
·
1 Parent(s): 800e571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -18,7 +18,6 @@ import numpy as np
18
  from PIL import Image
19
  import gradio as gr
20
  import torch
21
- import zipfile
22
  import os
23
  os.system('wget https://www.dropbox.com/s/ggf6ok63u7hywhc/neuralhash_128x96_seed1.dat')
24
  os.system('wget https://www.dropbox.com/s/1jug4wtevz1rol0/model.onnx')
@@ -27,8 +26,6 @@ os.system('wget https://www.dropbox.com/s/1jug4wtevz1rol0/model.onnx')
27
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/09/11/15/58/sunset-2739472_1280.jpg', 'sunset.jpg')
28
 
29
 
30
- with zipfile.ZipFile('apple-neural-hash.zip', 'r') as zip_ref:
31
- zip_ref.extractall('.')
32
  # Load ONNX model
33
  session = onnxruntime.InferenceSession('model.onnx')
34
 
 
18
  from PIL import Image
19
  import gradio as gr
20
  import torch
 
21
  import os
22
  os.system('wget https://www.dropbox.com/s/ggf6ok63u7hywhc/neuralhash_128x96_seed1.dat')
23
  os.system('wget https://www.dropbox.com/s/1jug4wtevz1rol0/model.onnx')
 
26
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/09/11/15/58/sunset-2739472_1280.jpg', 'sunset.jpg')
27
 
28
 
 
 
29
  # Load ONNX model
30
  session = onnxruntime.InferenceSession('model.onnx')
31