Spaces:
Paused
Paused
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def hello(name):
|
| 4 |
+
return f"Xin chào {name}, Space đang chạy bình thường!"
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(fn=hello, inputs="text", outputs="text", title="Test Space")
|
| 7 |
+
|
| 8 |
+
if __name__ == "__main__":
|
| 9 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 10 |
+
|