hiraltalsaniya commited on
Commit
0b75a00
1 Parent(s): 59a6149

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -20,21 +20,13 @@ title = "Yolov7 Custom"
20
  image = gr.inputs.Image(shape=(416, 416), image_mode="RGB", source="upload", label="Upload Image", optional=False)
21
  outputs = gr.outputs.Image(type="pil", label="Output Image")
22
 
23
- Custom_description="<center>Custom Training Performed on Kaggle <a href='https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook' style='text-decoration: underline' target='_blank'>Link</a> </center><br> <center>Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors </center> <br> <b>1st</b> class is for Person Detected<br><b>2nd</b> class is for Car Detected"
24
-
25
- Footer = (
26
- "<center>Model Trained by: Owais Ahmad Data Scientist at <b> Thoucentric </b> <a href=\"https://www.linkedin.com/in/owaiskhan9654/\">Visit Profile</a> <br></center>"
27
-
28
- "<center> Model Trained Kaggle Kernel <a href=\"https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook\">Link</a> <br></center>"
29
-
30
- "<center> Kaggle Profile <a href=\"https://www.kaggle.com/owaiskhan9654\">Link</a> <br> </center>"
31
-
32
- "<center> HuggingFace🤗 Model Deployed Repository <a href=\"https://huggingface.co/owaiskha9654/Yolov7_Custom_Object_Detection\">Link</a> <br></center>"
33
- )
34
 
35
  examples1=[["Image1.jpeg"],["Image2.jpeg"],["Image3.jpeg"],["Image4.jpeg"],["Image5.jpeg"],["Image6.jpeg"],["horses.jpeg"],["horses.jpeg"]]
36
 
37
- Top_Title="<center>Yolov7 🚀 Custom Trained by <a href='https://www.linkedin.com/in/owaiskhan9654/' style='text-decoration: underline' target='_blank'>Owais Ahmad </center></a>🚗Car and 👦Person Detection"
38
  css = ".output-image, .input-image {height: 50rem !important; width: 100% !important;}"
39
  css = ".image-preview {height: auto !important;}"
40
 
@@ -45,4 +37,4 @@ gr.Interface(
45
  title=Top_Title,
46
  description=Custom_description,
47
  article=Footer,
48
- examples=[["mask-person-2.jpg"], ["mask-person-2.jpg"]]).launch()
 
20
  image = gr.inputs.Image(shape=(416, 416), image_mode="RGB", source="upload", label="Upload Image", optional=False)
21
  outputs = gr.outputs.Image(type="pil", label="Output Image")
22
 
23
+ Custom_description="<center>Custom Training Performed on Colab </center><br> <br> <b>1st</b> class is for Person With mask<br><b>2nd</b> class is for Person Without mask"
24
+
25
+ Footer = ("Created for testing purpose")
 
 
 
 
 
 
 
 
26
 
27
  examples1=[["Image1.jpeg"],["Image2.jpeg"],["Image3.jpeg"],["Image4.jpeg"],["Image5.jpeg"],["Image6.jpeg"],["horses.jpeg"],["horses.jpeg"]]
28
 
29
+ Top_Title="<center>Yolov7 Trained on custome data set Face with mask and without mask People Detection"
30
  css = ".output-image, .input-image {height: 50rem !important; width: 100% !important;}"
31
  css = ".image-preview {height: auto !important;}"
32
 
 
37
  title=Top_Title,
38
  description=Custom_description,
39
  article=Footer,
40
+ examples=[["mask-person-2.jpg"], ["mask-person-3.jpg"]]).launch()