GithubHelp home page GithubHelp logo

jona42-ui / nlpdemo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 108 KB

Home Page: https://jona42-ui.github.io/nlpdemo/

HTML 9.66% Python 13.24% Jupyter Notebook 77.10%
fedora linux networking nlp-machine-learning nmstate nispor

nlpdemo's Introduction

Nmstate UI Demo

yaml api image

image

This is a simple Flask web application that demonstrates the usage of the Nmstate library to interact with network state in Python.

Installation

  1. Clone the repository:
git clone https://github.com/jona42-ui/nlpdemo.git
cd nlpdemo/webapp
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the Flask application:
python app.py

or

flask --app app.py run
  1. Open your web browser and go to http://localhost:5000.

  2. Enter natural language commands related to network configuration in the input field and click "Submit" to see the generated network state.

  3. Click on "Show Image" to visualize the network topology image.

NetVisor Integration

output

This demo application also integrates with NetVisor for network topology visualization. NetVisor is a host network topology visualization tool that generates images representing the network topology.

To use NetVisor with this application:

  1. Ensure you have NetVisor installed and available in your environment. see: https://github.com/ffmancera/NetVisor

  2. After submitting a network configuration command in the input field, click "Show Image" to generate and display the network topology image using NetVisor.

  3. If you encounter any issues with NetVisor integration, ensure that NetVisor is correctly installed and accessible from your environment.

Directory Structure

.
├── app.py
├── __init__.py
├── output.png
├── __pycache__
│   ├── app.cpython-310.pyc
│   └── __init__.cpython-310.pyc
├── README.md
├── requirements.txt
├── static
└── templates
    └── index.html

DEMO

Screencast.from.04-17-2024.07.18.05.PM.webm
Screencast.from.04-22-2024.07.33.07.AM.webm

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

nlpdemo's People

Contributors

jona42-ui avatar

Watchers

 avatar

Forkers

geekyyouthsinfo

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.