Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,3 +41,6 @@ with gr.Blocks(css=".gr-button {background-color: #2e7d32 !important; color: whi
|
|
41 |
detect_btn.click(fn=process_image, inputs=image_input, outputs=[weight_out, time_out, snapshot, retake_btn])
|
42 |
retake_btn.click(fn=lambda: ("", "", None, gr.update(visible=False)),
|
43 |
inputs=[], outputs=[weight_out, time_out, snapshot, retake_btn])
|
|
|
|
|
|
|
|
41 |
detect_btn.click(fn=process_image, inputs=image_input, outputs=[weight_out, time_out, snapshot, retake_btn])
|
42 |
retake_btn.click(fn=lambda: ("", "", None, gr.update(visible=False)),
|
43 |
inputs=[], outputs=[weight_out, time_out, snapshot, retake_btn])
|
44 |
+
|
45 |
+
# ✅ Required for Hugging Face to launch the app properly
|
46 |
+
demo.launch()
|