Code Monkey home page Code Monkey logo

Comments (4)

thistleknot avatar thistleknot commented on June 24, 2024

okay, I got past that error (didn't download the pkl file, needed to install some react from npm).

Now
(3.9-JupyterLab) H:\Text2Graph\frontend>npm run start

[email protected] start
react-scripts start

node:internal/modules/cjs/loader:444
throw err;
^

Error: Cannot find module 'H:\Text2Graph\frontend\node_modules\source-list-map\lib\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:436:19)
at Module._findPath (node:internal/modules/cjs/loader:678:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (H:\Text2Graph\frontend\node_modules\webpack-sources\lib\RawSource.js:9:21)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32) {
code: 'MODULE_NOT_FOUND',
path: 'H:\Text2Graph\frontend\node_modules\source-list-map\package.json',
requestPath: 'source-list-map'
}

Node.js v18.15.0

(3.9-JupyterLab) H:\Text2Graph\frontend>

from text2graph.

thistleknot avatar thistleknot commented on June 24, 2024

The API works
image

from text2graph.

thistleknot avatar thistleknot commented on June 24, 2024
import requests

#def main():
# Set the API endpoint URL
url = "http://localhost:8000/get_graph"

# Set the text input for the API
text_input = "The capital of France is Paris."

# Send a GET request to the API with the text input
response = requests.get(url, params={"text": text_input})

# Get the JSON response from the API
response_json = response.json()

# Print the response data (graph)
print(response_json["data"])

from text2graph.

xyjigsaw avatar xyjigsaw commented on June 24, 2024

Thank you for your interest in our work. If there are some other problems, please feel free to leave comments here.

from text2graph.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.