Spaces:
Sleeping
Sleeping
File size: 846 Bytes
c2b53d2 f35d5d0 c2b53d2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# -*- coding: utf-8 -*-
"""GRADIO: Hello World.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/18ODkJvyxHutTN0P5APWyGFO_xwNcgHDZ
## Using Gradio to create a simple interface.
Check out the library on [github](https://github.com/gradio-app/gradio-UI) and see the [getting started](https://gradio.app/getting_started.html) page for more demos.
We'll start with a basic function that greets an input name.
"""
def greet(name):
return "Hello " + name + "!"
greet("World")
"""Now we'll wrap this function with a Gradio interface."""
import gradio
gradio.Interface(greet, "text", "text").launch()
"""That's all! Go ahead and open that share link in a new tab. Check out our [getting started](https://gradio.app/getting_started.html) page for more complicated demos.""" |