geethareddy commited on
Commit
743d772
ยท
verified ยท
1 Parent(s): 3caa343

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(
15
 
16
  # Configure Tesseract path
17
  try:
18
- pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract'
19
  pytesseract.get_tesseract_version() # Test Tesseract availability
20
  logging.info("Tesseract is available")
21
  except Exception as e:
@@ -141,7 +141,7 @@ with gr.Blocks(title="โš–๏ธ Auto Weight Logger") as demo:
141
 
142
  with gr.Row():
143
  timestamp = gr.Textbox(label="๐Ÿ•’ Captured At (IST)")
144
- snapshot = gr.Image(label="๐Ÿ“ธ Snapshot Image", type="auto")
145
 
146
  submit = gr.Button("๐Ÿ” Detect Weight")
147
  submit.click(
 
15
 
16
  # Configure Tesseract path
17
  try:
18
+ pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract' # Adjust the path if needed
19
  pytesseract.get_tesseract_version() # Test Tesseract availability
20
  logging.info("Tesseract is available")
21
  except Exception as e:
 
141
 
142
  with gr.Row():
143
  timestamp = gr.Textbox(label="๐Ÿ•’ Captured At (IST)")
144
+ snapshot = gr.Image(label="๐Ÿ“ธ Snapshot Image", type="pil")
145
 
146
  submit = gr.Button("๐Ÿ” Detect Weight")
147
  submit.click(