Spaces:
Sleeping
Sleeping
Create test_app.py
Browse files- test_app.py +7 -0
test_app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# test_app.py(用于测试)
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def hello(name):
|
| 5 |
+
return f"Hello {name}!"
|
| 6 |
+
|
| 7 |
+
demo = gr.Interface(fn=hello, inputs="text", outputs="text")
|