Support configuring gradio startup parameters
Support configuring gradio startup parameters server_name and server_port: If you want to run DragGAN Gradio demo with 0.0.0.0 as server name, allowing to respond to network requests:
python visualizer_drag_gradio.py --listen
If you want to run DragGAN Gradio demo with given server port, for example port 8888:
python visualizer_drag_gradio.py --port=8888
--listen flag is so crucial to open port from docker container to local in order to interact without ssh tunneling
pip install draggan !pip3 install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu118/torch_nightly.html pip install Pillow==9.5.0 After installing the above three software packages, you can run DragGAN normally.
this command :- !python /content/DragGAN/visualizer_drag_gradio.py