mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-05 06:29:14 +00:00
Adding simple Gradio authorization in initial screen
This commit is contained in:
parent
a326079926
commit
d548830a45
@ -204,4 +204,7 @@ if __name__ == '__main__':
|
|||||||
print("done", flush=True)
|
print("done", flush=True)
|
||||||
|
|
||||||
demo = gradio_interface()
|
demo = gradio_interface()
|
||||||
|
if os.environ['WAN_USER'] and os.environ['WAN_PWD']:
|
||||||
|
demo.launch(server_name="0.0.0.0", share=False, server_port=7860, auth=(os.environ['WAN_USER'], os.environ['WAN_PWD']))
|
||||||
|
else:
|
||||||
demo.launch(server_name="0.0.0.0", share=False, server_port=7860)
|
demo.launch(server_name="0.0.0.0", share=False, server_port=7860)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user