Commit
·
a11ee17
1
Parent(s):
0ace152
Test Version
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def my_inference_function(name):
|
| 4 |
+
return "Hello " + name + "!"
|
| 5 |
+
|
| 6 |
+
gr_interface = gr.Interface(
|
| 7 |
+
fn = "my_inference_function",
|
| 8 |
+
input = "texts",
|
| 9 |
+
outputs = "texts"
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
gr_interface.launch()
|
| 13 |
+
|