Update app.py
Browse files
app.py
CHANGED
|
@@ -11,14 +11,13 @@ def detect(files):
|
|
| 11 |
save_path="./"
|
| 12 |
)
|
| 13 |
res = model.run()
|
| 14 |
-
img_id = res["IMG_ID"]
|
| 15 |
-
pred_lab = res["PRED_LAB"],
|
| 16 |
-
pred_ct = res["PRED_CT"],
|
| 17 |
-
geo_tag_url = res["GEO_TAG_URL"]
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
return res["PRED_CT"]
|
| 22 |
|
| 23 |
with gr.Blocks() as demo:
|
| 24 |
gr.Markdown("# DetectIt")
|
|
|
|
| 11 |
save_path="./"
|
| 12 |
)
|
| 13 |
res = model.run()
|
| 14 |
+
# img_id = res["IMG_ID"]
|
| 15 |
+
# pred_lab = res["PRED_LAB"],
|
| 16 |
+
# pred_ct = res["PRED_CT"],
|
| 17 |
+
# geo_tag_url = res["GEO_TAG_URL"]
|
| 18 |
+
|
| 19 |
+
result = json.dumps(res)
|
| 20 |
+
return result
|
|
|
|
| 21 |
|
| 22 |
with gr.Blocks() as demo:
|
| 23 |
gr.Markdown("# DetectIt")
|