Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def greet(name):
|
5 |
+
return f"Hello, {name}!"
|
6 |
+
|
7 |
+
|
8 |
+
demo = gr.Interface(
|
9 |
+
fn=greet,
|
10 |
+
inputs=["text"],
|
11 |
+
outputs=["text"]
|
12 |
+
)
|
13 |
+
|
14 |
+
if __name__ == "__main__":
|
15 |
+
demo.launch()
|