Spaces:
Running
Running
Create new file
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# URL: https://huggingface.co/spaces/gradio/hello_world
|
| 2 |
+
# imports
|
| 3 |
+
import gradio as gr
|
| 4 |
+
|
| 5 |
+
# core function
|
| 6 |
+
def greet(name):
|
| 7 |
+
return "Hello " + name + "!"
|
| 8 |
+
|
| 9 |
+
# text to text interface
|
| 10 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 11 |
+
|
| 12 |
+
# launch
|
| 13 |
+
demo.launch()
|