gauravml-89 commited on
Commit
99aeeaf
·
verified ·
1 Parent(s): e076e10

Upload folder using huggingface_hub

Browse files
Files changed (6) hide show
  1. README.md +3 -9
  2. aki_dog.jpg +0 -0
  3. bw2cl.py +11 -0
  4. cv2 +0 -0
  5. flagged/log.csv +2 -0
  6. wonder_cat.jpg +0 -0
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
- title: Myworkspace
3
- emoji: 📈
4
- colorFrom: yellow
5
- colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 4.14.0
8
- app_file: app.py
9
- pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: myworkspace
3
+ app_file: bw2cl.py
 
 
4
  sdk: gradio
5
+ sdk_version: 3.43.2
 
 
6
  ---
 
 
aki_dog.jpg ADDED
bw2cl.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+ pipe = pipeline(task="image-classification",
4
+ # model for 22k-category classification
5
+ model="google/vit-base-patch16-224")
6
+ gr.Interface.from_pipeline(pipe,
7
+ title="VIT GOOGLE IMG CLASSIFIER",
8
+ description="Object Recognition ...",
9
+ examples = ['wonder_cat.jpg',
10
+ 'aki_dog.jpg',],
11
+ ).launch(inbrowser=True,share=True)
cv2 ADDED
File without changes
flagged/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ name,output,flag,username,timestamp
2
+ Gaurav,Hello Gaurav,,,2023-09-09 22:20:25.177709
wonder_cat.jpg ADDED