ahmed commited on
Commit
29427db
·
1 Parent(s): 6c8120c

Expose queued ZeroGPU prediction API

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -0
gradio_app.py CHANGED
@@ -115,8 +115,12 @@ with gr.Blocks(title="Quran Reciter ID") as demo:
115
  fn=identify_reciter,
116
  inputs=[audio, video, run_dir, device, top_k],
117
  outputs=[verdict, candidates],
 
118
  )
119
 
120
 
 
 
 
121
  if __name__ == "__main__":
122
  demo.launch(server_name="0.0.0.0", share=True)
 
115
  fn=identify_reciter,
116
  inputs=[audio, video, run_dir, device, top_k],
117
  outputs=[verdict, candidates],
118
+ api_name="identify_reciter",
119
  )
120
 
121
 
122
+ demo.queue(default_concurrency_limit=1)
123
+
124
+
125
  if __name__ == "__main__":
126
  demo.launch(server_name="0.0.0.0", share=True)