yufengchen's picture
initial commit
50450e1 verified
raw
history blame contribute delete
322 Bytes
import gradio as gr
def reverse_string(text: str) -> str:
"""Reverse a string.
Args:
text: Input string
Returns:
Reversed string
"""
return text[::-1]
demo = gr.Interface(fn=reverse_string, inputs="text", outputs="text")
demo.launch(mcp_server=True) # Enables both Web UI and MCP SSE