Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from app.agent.manus import Manus | |
| agent = Manus() | |
| async def chat_fn(message, history): | |
| reply = await agent.run(message) | |
| return reply | |
| demo = gr.ChatInterface( | |
| fn=chat_fn, | |
| title="OpenManus", # shown at the top of the page | |
| stop_btn="Stop", # keep stop, drop retry/undo for max‑compat | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch(server_name="0.0.0.0", server_port=7860) |