Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
+
"""sample_gradio.ipynb
|
3 |
+
|
4 |
+
Automatically generated by Colaboratory.
|
5 |
+
|
6 |
+
Original file is located at
|
7 |
+
https://colab.research.google.com/drive/12UbmNo8dhYLpIZzAySjm8tcPXlyp8Z0M
|
8 |
+
"""
|
9 |
+
|
10 |
+
|
11 |
+
# demo
|
12 |
+
import gradio as gr
|
13 |
+
|
14 |
+
def greet(name):
|
15 |
+
return "Hello " + name + "!"
|
16 |
+
|
17 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
18 |
+
|
19 |
+
demo.launch()
|