CoolFace
Apppublic

maomao88/model_structure_viewer

sourceHugging Facemitupdated 3mo agoView on Hugging Face
66likes
App README

Run the app locally

This app is developed using React + Fastapi. You can run this app locally with the following steps.

Run Frontend

  1. 1.Install dependencies:
    npm i
  1. 1.Run the app:
commandline
    npm run dev
  1. 1.Open the browser and access the service from http://localhost:5173/

Run Backend

  1. 1.Activate the virtual environment

Make sure you have your Python virtual environment set up and activated.

  1. 1.Navigate to the backend directory
commandline
   cd backend
  1. 1.Install dependencies
commandline
   pip install -r requirements.txt
  1. 1.(Optional) Install GPU-related packages

If you are running on a GPU-enabled device, you can install additional packages (support for more models):

commandline
   python install_gpu_packages.py
  1. 1.Start the backend server

Run the FastAPI app with Uvicorn:

commandline
   uvicorn app:app --reload --host 0.0.0.0 --port 8000