mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
update demos and readme
This commit is contained in:
parent
f694ebac3a
commit
cdceb2f7fb
@ -28,6 +28,7 @@ pip install gradio
|
||||
````
|
||||
|
||||
2. Run the code below as a Python script or in a Python notebook (or in a [colab notebook](https://colab.research.google.com/drive/18ODkJvyxHutTN0P5APWyGFO_xwNcgHDZ?usp=sharing)).
|
||||
|
||||
````python
|
||||
import gradio as gr
|
||||
|
||||
@ -39,6 +40,7 @@ iface.launch()
|
||||
````
|
||||
|
||||
3. The interface below will appear automatically within the Python notebook, or pop in a browser on [http://localhost:7860](http://localhost:7860/) if running from a script.
|
||||
|
||||

|
||||
|
||||
### The Interface
|
||||
|
@ -28,9 +28,11 @@ pip install gradio
|
||||
````
|
||||
|
||||
2. Run the code below as a Python script or in a Python notebook (or in a [colab notebook](https://colab.research.google.com/drive/18ODkJvyxHutTN0P5APWyGFO_xwNcgHDZ?usp=sharing)).
|
||||
|
||||
$code_hello_world
|
||||
|
||||
3. The interface below will appear automatically within the Python notebook, or pop in a browser on [http://localhost:7860](http://localhost:7860/) if running from a script.
|
||||
|
||||
$demo_hello_world
|
||||
|
||||
### The Interface
|
||||
|
Loading…
Reference in New Issue
Block a user