osbm commited on
Commit
4d6e3da
·
1 Parent(s): 484d6a4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -265,6 +265,9 @@ def predict(input_file):
265
 
266
  print("Starting interface")
267
  demo = gr.Interface(
 
 
 
268
  fn=predict,
269
  inputs=gr.File(label="input T2 image (3d)", file_count="single", file_types=[".mha", ".nii.gz", ".nii"]),
270
  outputs=[
@@ -276,4 +279,5 @@ demo = gr.Interface(
276
  # outputs=gr.Label(num_top_classes=3),
277
  )
278
  print("Launching interface")
 
279
  demo.launch(server_name="0.0.0.0", server_port=7860)
 
265
 
266
  print("Starting interface")
267
  demo = gr.Interface(
268
+ title="Hevi.AI prostate inference",
269
+ description="description text",
270
+ article="article text",
271
  fn=predict,
272
  inputs=gr.File(label="input T2 image (3d)", file_count="single", file_types=[".mha", ".nii.gz", ".nii"]),
273
  outputs=[
 
279
  # outputs=gr.Label(num_top_classes=3),
280
  )
281
  print("Launching interface")
282
+ demo.queue(concurrency_count=1)
283
  demo.launch(server_name="0.0.0.0", server_port=7860)