luca-medeiros / lang-segment-anything

SAM with text prompt
Apache License 2.0
1.53k stars 167 forks source link

cant share link #25

Closed quinwu closed 1 year ago

quinwu commented 1 year ago

Instructions To Reproduce the 🐛 Bug:

  1. Background explanation

When I run this project in a server, I want to use the frontend in server machine's.

I cant find how to config launch(share=True) in lightning.app

askerlee commented 1 year ago

Update: Two local addresses will be printed by the app. But only the gradio address works.

A workaround is to use ssh port forwarding. For example if the app says: http://127.0.0.1:33799

Then you can set up the ssh port forwarding as: ssh -L 33799:172.0.0.1:33799 your_user_name@ip_where_the_code_runs Then you can access the UI at your local address: http://127.0.0.1:33799