Spaces:
Runtime error
Runtime error
Upload 10 files
Browse files- .gitattributes +4 -0
- README.md +6 -5
- app.py +18 -0
- examples/example_0.jpg +3 -0
- examples/example_1.png +3 -0
- examples/example_2.png +0 -0
- examples/example_3.png +3 -0
- examples/example_4.jpg +0 -0
- examples/example_5.png +3 -0
- requirements.txt +4 -0
- resources/food_info.csv +4 -0
.gitattributes
CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
examples/example_0.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
examples/example_1.png filter=lfs diff=lfs merge=lfs -text
|
38 |
+
examples/example_3.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
examples/example_5.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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: CSGO Weapon Classification App
|
3 |
+
emoji: 🔫
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.0.24
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
examples = ["examples/example_0.jpg",
|
5 |
+
"examples/example_1.png",
|
6 |
+
"examples/example_2.png",
|
7 |
+
"examples/example_3.png",
|
8 |
+
"examples/example_4.jpg",
|
9 |
+
"examples/example_5.png"]
|
10 |
+
|
11 |
+
pipe = pipeline(task="image-classification",
|
12 |
+
model="Kaludi/csgo-weapon-classification")
|
13 |
+
gr.Interface.from_pipeline(pipe,
|
14 |
+
title="CSGO Weapon Image Classification",
|
15 |
+
description = "This is a CSGO Weapon Classifier Model that has been trained by <strong><a href='https://huggingface.co/Kaludi'>Kaludi</a></strong> to recognize <strong>11</strong> different types of Counter-Strike: Global Offensive (CSGO) Weapons, which include <strong>AK-47,AWP,Famas,Galil-AR,Glock,M4A1,M4A4,P-90,SG-553,UMP,USP</strong>. The model is capable of accurately classifying the weapon name present in an image. With its deep understanding of the characteristics of each weapon in the game, the model is a valuable tool for players and fans of CSGO.",
|
16 |
+
article = "<p style='text-align: center'><a href='https://github.com/Kaludii'>Github</a> | <a href='https://huggingface.co/Kaludi'>HuggingFace</a></p>",
|
17 |
+
examples=examples,
|
18 |
+
).launch()
|
examples/example_0.jpg
ADDED
![]() |
Git LFS Details
|
examples/example_1.png
ADDED
![]() |
Git LFS Details
|
examples/example_2.png
ADDED
![]() |
examples/example_3.png
ADDED
![]() |
Git LFS Details
|
examples/example_4.jpg
ADDED
![]() |
examples/example_5.png
ADDED
![]() |
Git LFS Details
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fastai==2.7.4
|
2 |
+
huggingface_hub[fastai]
|
3 |
+
fastcore>=1.3.27
|
4 |
+
transformers
|
resources/food_info.csv
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Food,Calories,Grams of Fat,Grams of Carbs,Grams of Protein
|
2 |
+
sushi,1,2g,2g,2g
|
3 |
+
apple_pie,2,2g,2g,2g
|
4 |
+
tiramisu,3,2g,2g,2g
|