Daniel Ecer commited on
Commit
acd832b
·
1 Parent(s): 555e8c6

Added app description

Browse files
fngradio_various_api_mcp/__main__.py CHANGED
@@ -1,10 +1,23 @@
1
  import logging
 
2
 
 
3
  from fngradio_various_api_mcp.app import app
4
 
5
 
6
  def main() -> None:
7
- app.tabbed().launch(mcp_server=True)
 
 
 
 
 
 
 
 
 
 
 
8
 
9
 
10
  if __name__ == "__main__":
 
1
  import logging
2
+ import textwrap
3
 
4
+ import gradio as gr
5
  from fngradio_various_api_mcp.app import app
6
 
7
 
8
  def main() -> None:
9
+ with gr.Blocks() as demo:
10
+ description = textwrap.dedent(
11
+ """
12
+ Provides [Gradio](https://github.com/gradio-app/gradio) UI
13
+ with [MCP](https://modelcontextprotocol.io) server over various public APIs.
14
+ It is using [fngradio](https://github.com/de-code/fngradio) to
15
+ make defining a Gradio UI easier.
16
+ """
17
+ )
18
+ gr.Markdown(description)
19
+ app.tabbed()
20
+ demo.launch(mcp_server=True)
21
 
22
 
23
  if __name__ == "__main__":