Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ with gr.Blocks() as demo:
|
|
48 |
gr.Markdown("## Auto Weight Logger\nUpload or capture a digital scale image. This app detects the weight automatically using AI.")
|
49 |
|
50 |
with gr.Row():
|
51 |
-
image_input = gr.Image(type="pil", label="Upload or Capture Weight Image",
|
52 |
with gr.Column():
|
53 |
output_text = gr.Textbox(label="Detected Weight")
|
54 |
output_time = gr.Textbox(label="Captured At (IST)")
|
|
|
48 |
gr.Markdown("## Auto Weight Logger\nUpload or capture a digital scale image. This app detects the weight automatically using AI.")
|
49 |
|
50 |
with gr.Row():
|
51 |
+
image_input = gr.Image(type="pil", label="Upload or Capture Weight Image", sources=["upload", "camera"])
|
52 |
with gr.Column():
|
53 |
output_text = gr.Textbox(label="Detected Weight")
|
54 |
output_time = gr.Textbox(label="Captured At (IST)")
|