Spaces:
Sleeping
Sleeping
Arifin commited on
Commit ·
20121b0
1
Parent(s): bd4054e
coba
Browse files
app.py
CHANGED
|
@@ -52,7 +52,8 @@ def get_inspection_recommendation(total_area):
|
|
| 52 |
return "Immediate inspection required."
|
| 53 |
|
| 54 |
# Define a Gradio interface to input a URL, run inference, and calculate corrosion areas
|
| 55 |
-
def url_infer_and_calculate(url, location, unit="pixels", conversion_factor=1):
|
|
|
|
| 56 |
try:
|
| 57 |
# Run inference using the Roboflow script
|
| 58 |
rf_project = rf.workspace().project("corrosion-instance-segmentation-sfcpc")
|
|
|
|
| 52 |
return "Immediate inspection required."
|
| 53 |
|
| 54 |
# Define a Gradio interface to input a URL, run inference, and calculate corrosion areas
|
| 55 |
+
#def url_infer_and_calculate(url, location, unit="pixels", conversion_factor=1):
|
| 56 |
+
def url_infer_and_calculate(url, location, unit="pixels", conversion_factor=1, corrosion_type="", inspection_standards=[], ndt_methods=[], manual_recommendation="", supporting_data=""):
|
| 57 |
try:
|
| 58 |
# Run inference using the Roboflow script
|
| 59 |
rf_project = rf.workspace().project("corrosion-instance-segmentation-sfcpc")
|