microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.57k stars 260 forks source link

'OpenAITextGenerator' is not defined #77

Open agvaishali opened 6 months ago

agvaishali commented 6 months ago

Below is my code in colab to use LIDA UI. But I am getting this error: OpenAITextGenerator' is not defined.

!pip install openai !pip install lida os.environ['OPENAI_API_KEY'] = 'abc' !lida ui --port=8080 --docs

Amit-sood commented 6 months ago

I am getting the same error. Any luck with you?

victordibia commented 6 months ago

Hi,

Thanks for noting this. I just saw there was abug where the latest version of llmx (the library used to make connections to openai) was not installed. I have now updated this and pushed a fix (lida v 0.0.11).

To get the latest version, run.

pip install -U lida 

You can verify you have v0.0.11 and above by running

pip show lida 

This should show Version: 0.0.11