| import gradio as gr | |
| import frontmatter | |
| description = frontmatter.load("README.md").content | |
| def predict(inp): | |
| return "hi" | |
| def run(): | |
| demo = gr.Interface( | |
| fn=predict, | |
| inputs=gr.Textbox(), | |
| outputs=gr.Textbox(), | |
| description=description | |
| ) | |
| demo.launch(server_name="0.0.0.0", server_port=7860) | |
| if __name__ == "__main__": | |
| run() | |