yufengchen commited on
Commit
50450e1
·
verified ·
1 Parent(s): b1a2a62

initial commit

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def reverse_string(text: str) -> str:
4
+ """Reverse a string.
5
+ Args:
6
+ text: Input string
7
+ Returns:
8
+ Reversed string
9
+ """
10
+ return text[::-1]
11
+
12
+ demo = gr.Interface(fn=reverse_string, inputs="text", outputs="text")
13
+ demo.launch(mcp_server=True) # Enables both Web UI and MCP SSE