text-generation-webui
text-generation-webui copied to clipboard
[Enhancement, Colab] Add another way to get Gradio's public URL
I often switch between my phone and PC when using chat and if "Character bias" is on (I have it on permanently) public URL is getting lost being truncated in the terminal because of amount of lines outputted. So far I need either send the link from one device to another or restart the cell to receive another link to Gradio
There is a way like so: https://www.reddit.com/r/GoogleColab/comments/n69c40/copy_text_to_clipboard/
from IPython.display import HTML
text = 'copy this text to clipboard'
HTML(f"<button onclick=navigator.clipboard.writeText('{text}')>Copy</button>")
But it is not persistent between devices or after page reload.