gradio-auth-new / app.py
iamrobotbear's picture
can we environment variable?
fd8430b
raw
history blame
186 Bytes
import gradio as gr
import os
demo = gr.Interface.load("spaces/camenduru/webui-docker")
demo.launch(enable_queue=False, auth=("username", os.environ.get("P")), auth_message="Try this")