Spaces:
Sleeping
Sleeping
| 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 |