Spaces:
Paused
Paused
Download app.py from eCiu/ContextCourse: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/eCiu/ContextCourse/resolve/main/app.py
- Command line
-
hf download hf://spaces/eCiu/ContextCourse/app.py
-
curl -L -o app.py https://huggingface.co/spaces/eCiu/ContextCourse/resolve/main/app.py
369 Bytes
| import gradio as gr | |
| import spaces | |
| 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) | |