Skip to content

Taited/ImageViewer

Repository files navigation

FastAPI Setup

How to Run

  1. Install dependencies:

    pip install -r requirements.txt
  2. Start the app:

    python app.py
    • Runs on https://0.0.0.0:5001
    • To change the port or disable SSL, edit app.py:
    uvicorn.run('app:app', port=YOUR_PORT, ssl_keyfile=None, ssl_certfile=None)
  3. API can only access image files in IMAGE_DIR (default: ./). To change the directory, edit IMAGE_DIR in app.py.

  4. Place a unique JSON file in jsons/ (follow jsons/demo.json for format).

Example

Access the API at:

https://localhost:5001/image/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors