Thomas J. Trebat commited on
Commit
0f6cc97
1 Parent(s): b2c6118

first commit

Browse files
Files changed (2) hide show
  1. app.py +7 -0
  2. requirements.txt +3 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import requests
2
+ from PIL import Image
3
+ from io import BytesIO
4
+
5
+ url = 'https://datasets-server.huggingface.co/assets/imagenet-1k/--/default/test/12/image/image.jpg'
6
+ image = Image.open(requests.get(url, stream=True).raw)
7
+ image
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ timm
2
+ torch
3
+ streamlit