dal4933 commited on
Commit
6f87048
·
verified ·
1 Parent(s): 31d0bc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import cv2
2
  import zxingcpp
3
  import gradio as gr
@@ -23,6 +25,7 @@ def scan_barcode(image: np.ndarray) -> dict:
23
  # Create Gradio interface
24
  iface = gr.Interface(
25
  fn=scan_barcode,
 
26
  inputs=gr.Image(label="Barcode Image", type="numpy"),
27
  outputs=gr.JSON(label="Scan Result"),
28
  title="📦 Barcode Scanner API",
 
1
+ # app.py
2
+
3
  import cv2
4
  import zxingcpp
5
  import gradio as gr
 
25
  # Create Gradio interface
26
  iface = gr.Interface(
27
  fn=scan_barcode,
28
+ api_name="scan", # <-- ADD THIS LINE
29
  inputs=gr.Image(label="Barcode Image", type="numpy"),
30
  outputs=gr.JSON(label="Scan Result"),
31
  title="📦 Barcode Scanner API",