scfive commited on
Commit
25f9ade
·
verified ·
1 Parent(s): 62fa231

Upload 10 files

Browse files
.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: ESPR-Weapons Class
3
- emoji: 😻
4
- colorFrom: yellow
5
- colorTo: purple
6
  sdk: gradio
7
- sdk_version: 5.21.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: 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

  • SHA256: c23e79bac9a2ac1dda8dfb693f4bc8ef1c759b4220ddf92143df9fdbda7b94a2
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
examples/example_1.png ADDED

Git LFS Details

  • SHA256: c493f4923749e92801ee5b20bdaeae3be297b3e5d59035360a18a3f7fe30c5b5
  • Pointer size: 131 Bytes
  • Size of remote file: 306 kB
examples/example_2.png ADDED
examples/example_3.png ADDED

Git LFS Details

  • SHA256: 34daec8e586cd335b568055aa6dddd4664b59cd00e7ac03f414dcd51f44dcad2
  • Pointer size: 131 Bytes
  • Size of remote file: 207 kB
examples/example_4.jpg ADDED
examples/example_5.png ADDED

Git LFS Details

  • SHA256: 3f3c615b4bbd6ff75a69917653cccc233e7dddb89e65a1effac65422b7dc25e4
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
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