luca-medeiros / lang-segment-anything

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

AttributeError: module 'lightning' has no attribute 'LightningApp' #39

Closed dengfeng0729 closed 7 months ago

dengfeng0729 commented 10 months ago

AttributeError: module 'lightning' has no attribute 'LightningApp' I can not run this project, how to deal with it ?

saalihou commented 10 months ago

I was able to make it work with the following changes Inapp.py, add at the top

from lightning.app import LightningApp

And then change the following line

app = L.LightningApp(LitGradio())

Into

app = LightningApp(LitGradio())

Will make a PR to fix this

dengfeng0729 commented 10 months ago

I was able to make it work with the following changes Inapp.py, add at the top

from lightning.app import LightningApp

And then change the following line

app = L.LightningApp(LitGradio())

Into

app = LightningApp(LitGradio())

Will make a PR to fix this

yes, LightningApp This package is included in Lightning.app, the source code does not import the app