Ahsen Khaliq commited on
Commit
5e13e8d
·
1 Parent(s): 0fbd8bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ os.system('wget https://www.dropbox.com/s/1jug4wtevz1rol0/model.onnx')
24
 
25
 
26
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/09/11/15/58/sunset-2739472_1280.jpg', 'sunset.jpg')
27
- torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2021/02/10/22/13/lake-6003727_1280.jpg', 'lake.jpg')
28
 
29
 
30
 
@@ -74,7 +74,7 @@ def inference(img, img2):
74
  title = "AppleNeuralHash"
75
  description = "Gradio demo for Apple NeuralHash, a perceptual hashing method for images based on neural networks. It can tolerate image resize and compression. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
76
  article = "<p style='text-align: center'><a href='https://www.apple.com/child-safety/pdf/CSAM_Detection_Technical_Summary.pdf'>CSAM Detection Technical Summary</a> | <a href='https://github.com/AsuharietYgvar/AppleNeuralHash2ONNX'>Github Repo</a></p>"
77
- examples = [['sunset.jpg','lake.jpg']]
78
 
79
  gr.Interface(
80
  inference,
 
24
 
25
 
26
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/09/11/15/58/sunset-2739472_1280.jpg', 'sunset.jpg')
27
+ torch.hub.download_url_to_file('https://i.imgur.com/ka5s8K7.png', 'rotate.png')
28
 
29
 
30
 
 
74
  title = "AppleNeuralHash"
75
  description = "Gradio demo for Apple NeuralHash, a perceptual hashing method for images based on neural networks. It can tolerate image resize and compression. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
76
  article = "<p style='text-align: center'><a href='https://www.apple.com/child-safety/pdf/CSAM_Detection_Technical_Summary.pdf'>CSAM Detection Technical Summary</a> | <a href='https://github.com/AsuharietYgvar/AppleNeuralHash2ONNX'>Github Repo</a></p>"
77
+ examples = [['sunset.jpg','rotate.png']]
78
 
79
  gr.Interface(
80
  inference,