qijie.wei commited on
Commit
3937d77
·
1 Parent(s): 6735c2f

del prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -11,19 +11,14 @@ TEXT_OPTIONS = ["CFP", "UWF", "FFA", "SLO", "OCTA"]
11
 
12
  inference_engine = Inference(model_path=model_path)
13
 
14
- def main(image, text):
15
- out = inference_engine.inference(image, text)
16
  return out
17
 
18
  interface = gr.Interface(
19
  fn=main,
20
  inputs=[
21
  gr.Image(type="numpy"),
22
- gr.Dropdown(
23
- choices=TEXT_OPTIONS,
24
- label="Modality",
25
- value=TEXT_OPTIONS[0]
26
- )
27
  ],
28
  outputs=gr.Image(type="numpy"),
29
  title="Broad domain retinal vessel segmentation",
 
11
 
12
  inference_engine = Inference(model_path=model_path)
13
 
14
+ def main(image):
15
+ out = inference_engine.inference(image, "CFP")
16
  return out
17
 
18
  interface = gr.Interface(
19
  fn=main,
20
  inputs=[
21
  gr.Image(type="numpy"),
 
 
 
 
 
22
  ],
23
  outputs=gr.Image(type="numpy"),
24
  title="Broad domain retinal vessel segmentation",