Selaa lähdekoodia

Add Python model server to README.md

Lutz Roeder 8 vuotta sitten
vanhempi
sitoutus
85f5c940ab
1 muutettua tiedostoa jossa 21 lisäystä ja 2 poistoa
  1. 21 2
      README.md

+ 21 - 2
README.md

@@ -5,9 +5,28 @@ Netron is a viewer for [ONNX](http://onnx.ai) neural network models.
 
 <p align='center'><a href='https://www.lutzroeder.com/ai'><img src='media/screenshot.png' width='800'></a></p>
 
-
 ## Getting Started
 
-Download and install Netron from [here](https://github.com/lutzroeder/Netron/releases).
+Download and install the Netron app for Windows, macOS or Linux from [here](https://github.com/lutzroeder/Netron/releases).
 
 Download example ONNX models [here](https://github.com/onnx/models).
+
+## Python Model Server 
+
+Install the Python web server using pip: 
+```
+pip install netron
+```
+
+Launch the model server and open web browser:
+
+```
+netron --browse my_model.onnx
+```
+
+To serve a model from Python code:
+```
+import netron
+
+netron.serve_file('my_model.onnx', browse=True)
+```