Installation
+Gradio requires Python 3. You can download the latest version of gradio
using pip, like this:
+
Or you may want to do
Getting Started
GradIO is a python library that allows you to place input and output
interfaces over trained models to make it easy for you to "play around"
@@ -22,14 +28,14 @@
page. Setting up GradIO is as easy as pip install gradio
or
pip3 install gradio
for Python3.
Running a GradIO interface requires calling Interface(input : str,
- output : str, model_type
+ class="func">Interface(inputs : str,
+ outputs : str, model_type
: str, model : Any)
function, which takes as input
arguments:
- input
– the string representing
- the input interface to be used.
- output
– the string representing
+ inputs
– the string representing
+ the input interface to be used, or a subclass of gradio.AbstractInput
(see below).
+ outputs
– the string representing
the output interface to be used.
model_type
– the string
representing type of model being passed in. Supported types include
@@ -46,26 +52,27 @@
define and train the model as you would normally
io = gradio.Interface(input=“sketchpad”, output=“label”, inputs=“sketchpad”, outputs=“label”, model_type=“keras”, model=mdl)
io.launch()