Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
| 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(
|