Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- README.md +3 -9
- aki_dog.jpg +0 -0
- bw2cl.py +11 -0
- cv2 +0 -0
- flagged/log.csv +2 -0
- wonder_cat.jpg +0 -0
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
|
4 |
-
colorFrom: yellow
|
5 |
-
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
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
![]() |