CG commited on
Commit
49a8512
·
1 Parent(s): 741f53c

Add application file

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cesar Garcia
2
+
3
+ # Imports
4
+
5
+ import streamlit as st
6
+ from datasets import load_dataset, Image
7
+ from PIL import Image
8
+
9
+ # Load dataset from Hugging Face
10
+
11
+ dataset = load_dataset("gcesar/spinach")
12
+
13
+ # Call image using datasets[vision]
14
+
15
+
16
+ st.write(dataset["train"][0]["image"])
17
+
18
+
19
+