torchFlow commited on
Commit
e7f0ade
·
1 Parent(s): 6b4297e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
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
- PRED.append(pred_ct)
19
-
20
- print(res["PRED_CT"])
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")