DimasMP3 commited on
Commit
d33934a
·
1 Parent(s): f7d8f3c

Disable Gradio queue for direct inference

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -101,11 +101,9 @@ def launch_app():
101
  "server_port": settings.port,
102
  "share": settings.share,
103
  "show_api": True,
 
104
  }
105
 
106
- if settings.cors_allowed_origins:
107
- launch_args["allowed_paths"] = settings.cors_allowed_origins
108
-
109
  if settings.gradio_username and settings.gradio_password:
110
  launch_args["auth"] = (settings.gradio_username, settings.gradio_password)
111
  launch_args["auth_message"] = "Masukkan kredensial untuk mengakses demo"
 
101
  "server_port": settings.port,
102
  "share": settings.share,
103
  "show_api": True,
104
+ "enable_queue": False,
105
  }
106
 
 
 
 
107
  if settings.gradio_username and settings.gradio_password:
108
  launch_args["auth"] = (settings.gradio_username, settings.gradio_password)
109
  launch_args["auth_message"] = "Masukkan kredensial untuk mengakses demo"