Update app.py
Browse files
app.py
CHANGED
|
@@ -149,7 +149,7 @@ def detect_defects(image):
|
|
| 149 |
draw.text((box[0], box[1] - 20 if box[1] > 20 else box[1],), text, fill="red", font=font)
|
| 150 |
|
| 151 |
if output:
|
| 152 |
-
current_date = datetime.now().strftime("%Y-%m
|
| 153 |
inspection_name = f"Inspection-{current_date}-{len(output):03d}"
|
| 154 |
|
| 155 |
try:
|
|
@@ -228,4 +228,4 @@ with gr.Blocks() as demo:
|
|
| 228 |
)
|
| 229 |
|
| 230 |
if __name__ == "__main__":
|
| 231 |
-
demo.launch(share=False
|
|
|
|
| 149 |
draw.text((box[0], box[1] - 20 if box[1] > 20 else box[1],), text, fill="red", font=font)
|
| 150 |
|
| 151 |
if output:
|
| 152 |
+
current_date = datetime.now().strftime("%Y-%m-d")
|
| 153 |
inspection_name = f"Inspection-{current_date}-{len(output):03d}"
|
| 154 |
|
| 155 |
try:
|
|
|
|
| 228 |
)
|
| 229 |
|
| 230 |
if __name__ == "__main__":
|
| 231 |
+
demo.launch(share=False) # Removed the unsupported allow_flagging parameter
|