Spaces:
Paused
Paused
File size: 369 Bytes
8fe862f cbbc5ea 8fe862f cbbc5ea 8fe862f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import gradio as gr
import spaces
@spaces.GPU
def my_tool(input_text: str) -> str:
"""Do something with input.
Args:
input_text: The input
Returns:
The result
"""
return f"Processed: {input_text}"
demo = gr.Interface(fn=my_tool, inputs="text", outputs="text")
if __name__ == "__main__":
demo.launch(mcp_server=True)
|