Eric P. Nusbaum commited on
Commit
076eeb1
·
1 Parent(s): 0e2b9ca
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -134,7 +134,7 @@ def detect_objects(image):
134
 
135
  return annotated_image, detection_summary
136
 
137
- # Gradio Interface
138
  iface = gr.Interface(
139
  fn=detect_objects,
140
  inputs=gr.Image(type="pil"),
@@ -143,12 +143,14 @@ iface = gr.Interface(
143
  gr.Textbox(label="Detections")
144
  ],
145
  title="JunkWaxHero ⚾ - Baseball Card Set Detection (ONNX Model)",
146
- description="Upload an image to itentify the set of the baseball card (1980-1999).",
 
 
 
147
  examples=["examples/card1.jpg", "examples/card2.jpg", "examples/card3.jpg"],
148
  theme="default", # You can choose other themes if desired
149
  allow_flagging="never" # Disable flagging if not needed
150
- # Removed 'layout' parameter
151
  )
152
 
153
  if __name__ == "__main__":
154
- iface.launch()
 
134
 
135
  return annotated_image, detection_summary
136
 
137
+ # Enhanced Gradio Interface with Links to Model Card and Repository
138
  iface = gr.Interface(
139
  fn=detect_objects,
140
  inputs=gr.Image(type="pil"),
 
143
  gr.Textbox(label="Detections")
144
  ],
145
  title="JunkWaxHero ⚾ - Baseball Card Set Detection (ONNX Model)",
146
+ description=(
147
+ "Upload an image to identify the set of the baseball card (1980-1999).\n\n"
148
+ "[🔗 Model Card & Repository](https://huggingface.co/enusbaum/JunkWaxHero)"
149
+ ),
150
  examples=["examples/card1.jpg", "examples/card2.jpg", "examples/card3.jpg"],
151
  theme="default", # You can choose other themes if desired
152
  allow_flagging="never" # Disable flagging if not needed
 
153
  )
154
 
155
  if __name__ == "__main__":
156
+ iface.launch()