Nekomi2 commited on
Commit
c2b53d2
1 Parent(s): 24113fd

Upload app.py with huggingface_hub

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