luca-medeiros / lang-segment-anything

SAM with text prompt
Apache License 2.0
1.74k stars 192 forks source link

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

Closed dengfeng0729 closed 9 months ago

dengfeng0729 commented 1 year ago

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

saalihou commented 1 year 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 1 year 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