rohand1 commited on
Commit
a3620b3
1 Parent(s): c648df5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -4
app.py CHANGED
@@ -1,7 +1,22 @@
1
- import gradio as gr
 
 
 
 
 
 
 
 
2
 
3
  def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ """GRADIO: Hello World.ipynb
3
+ Automatically generated by Colaboratory.
4
+ Original file is located at
5
+ https://colab.research.google.com/drive/18ODkJvyxHutTN0P5APWyGFO_xwNcgHDZ
6
+ ## Using Gradio to create a simple interface.
7
+ 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.
8
+ We'll start with a basic function that greets an input name.
9
+ """
10
 
11
  def greet(name):
12
+ return "Hello " + name + "!"
13
 
14
+ greet("World")
15
+
16
+ """Now we'll wrap this function with a Gradio interface."""
17
+
18
+ import gradio
19
+
20
+ gradio.Interface(greet, "text", "text").launch()
21
+
22
+ """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."""