Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not generating graph #19

Open
adbrei opened this issue Feb 3, 2023 · 12 comments
Open

Not generating graph #19

adbrei opened this issue Feb 3, 2023 · 12 comments

Comments

@adbrei
Copy link

adbrei commented Feb 3, 2023

Hello,

I installed everything, and the UI in the browser opens as expected. However, when I type my prompt and click 'Generate' nothing seems to happen. I've tried in different locations with different WiFi, so I don't think it's the WiFi connection. I've left it open for about fifteen minutes. Does anyone have any thoughts/recommendations? Thanks!

@iAmmarTahir
Copy link

Have you added your OPENAI_API_KEY?

@adbrei
Copy link
Author

adbrei commented Feb 3, 2023

Yes, I added my key to App.js, line 5:
const OPENAI_API_KEY = "MY_OPENAI_API_KEY"

@lodm94
Copy link

lodm94 commented Feb 3, 2023

How did you manage to launch te UI locally?
I did the following:

  • apt update && apt install npm
  • npm install react-graph-vis
  • copied the API kei
  • npm run start

But it fails like i reported here.
Maybe its a host problem? I launch this on windows using ubuntu WSL2

@iAmmarTahir
Copy link

I have these versions:
Node: v14.17.4
NPM: 7.9.1
and everything works fine for me.
Can you guys try this

@lodm94
Copy link

lodm94 commented Feb 3, 2023

yeah i will. but which is your host device? Ubuntu laptop? Server?

@iAmmarTahir
Copy link

yeah i will. but which is your host device? Ubuntu laptop? Server?

I'm on Macbook M1

@lodm94
Copy link

lodm94 commented Feb 3, 2023

I will try on the same machine. But do you think these steps are ok or am i missing something?

  • apt update && apt install npm
  • npm install react-graph-vis
  • copied the API kei
  • npm run start

@iAmmarTahir
Copy link

iAmmarTahir commented Feb 3, 2023

You need to run npm install and then npm start

@adbrei
Copy link
Author

adbrei commented Feb 3, 2023

@lodm94 I had those same errors until I ran npm install Now, the UI opens in the browser; however, nothing happens when I click 'generate' (I've left it open for an hour and a half).
Screenshot 2023-02-03 at 8 03 19 AM
Screenshot 2023-02-03 at 8 05 14 AM
image

@lodm94
Copy link

lodm94 commented Feb 3, 2023

Thanks all for the support, i figured it out.
In Ubuntu 20.04 i needed to do the following:

  • apt update && apt install npm
  • npm i -g npm@latest
  • curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get install -y nodejs
  • npm install
  • npm start

Then i navigate to localhost:3000 and the UI is up&running.
This is the only way to make it work; i tried on a Ubuntu 20.04 workstation and also on Windows 11 workstation using WSL2.
Do you think it is appropriate to include these steps in the instructions?

@adbrei i have no problem in generate the graph. it takes few seconds with a simple phrase like

bob is anna's boyfriend. mark is bob's dad

@ramonwenger
Copy link
Contributor

@iAmmarTahir I'm sure you didn't mean any harm by it, but I would find it much more productive for you to contribute those changes to this repo by making a PR instead of creating your own and advertising it in the issues and thus potentially splitting up the potential user base of either. The repo has already a few contributions, and @varunshenoy is quite quick in replying / merging.

@iAmmarTahir
Copy link

@iAmmarTahir I'm sure you didn't mean any harm by it, but I would find it much more productive for you to contribute those changes to this repo by making a PR instead of creating your own and advertising it in the issues and thus potentially splitting up the potential user base of either. The repo has already a few contributions, and @varunshenoy is quite quick in replying / merging.

Yeah, I think you're right about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants