Spaces:
Sleeping
Sleeping
| import logging | |
| import textwrap | |
| import gradio as gr | |
| from fngradio_various_api_mcp.app import app | |
| def main() -> None: | |
| with gr.Blocks() as demo: | |
| description = textwrap.dedent( | |
| """ | |
| Provides [Gradio](https://github.com/gradio-app/gradio) UI | |
| with [MCP](https://modelcontextprotocol.io) server over various public APIs. | |
| It is using [fngradio](https://github.com/de-code/fngradio) to | |
| make defining a Gradio UI easier. | |
| """ | |
| ) | |
| gr.Markdown(description) | |
| app.tabbed() | |
| demo.launch(mcp_server=True) | |
| if __name__ == "__main__": | |
| logging.basicConfig(level=logging.INFO) | |
| main() | |