DimasMP3 commited on
Commit
c695e83
·
1 Parent(s): 0642bfe

Explicitly disable Gradio queue before launch

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -90,7 +90,6 @@ def build_interface() -> gr.Interface:
90
  title="Face Shape Detection",
91
  description="Unggah foto wajah untuk mendeteksi bentuk wajah Anda menggunakan model TensorFlow.",
92
  allow_flagging="never",
93
- enable_queue=False,
94
  )
95
 
96
 
@@ -108,7 +107,7 @@ def launch_app():
108
  launch_args["auth"] = (settings.gradio_username, settings.gradio_password)
109
  launch_args["auth_message"] = "Masukkan kredensial untuk mengakses demo"
110
 
111
- iface.launch(**launch_args)
112
 
113
 
114
  if __name__ == "__main__":
 
90
  title="Face Shape Detection",
91
  description="Unggah foto wajah untuk mendeteksi bentuk wajah Anda menggunakan model TensorFlow.",
92
  allow_flagging="never",
 
93
  )
94
 
95
 
 
107
  launch_args["auth"] = (settings.gradio_username, settings.gradio_password)
108
  launch_args["auth_message"] = "Masukkan kredensial untuk mengakses demo"
109
 
110
+ iface.queue(False).launch(**launch_args)
111
 
112
 
113
  if __name__ == "__main__":