File size: 865 Bytes
a3620b3
 
 
 
 
 
 
 
 
ed21522
 
aa4b963
ed21522
a3620b3
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- 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 + " " + " lets go for tea?" 

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."""