Spaces:
Build error
Build error
| import gradio as gr | |
| from pipeline import run_with_chain | |
| def ask_HealthyAIExpert(query: str) -> str: | |
| return run_with_chain(query) | |
| interface = gr.Interface( | |
| fn=ask_HealthyAIExpert, | |
| inputs=gr.Textbox(lines=2, label="Ask Healthy AI Expert"), | |
| outputs=gr.Textbox(label="Healthy AI Expert Answer"), | |
| title="Healthy AI Expert", | |
| description="Ask about wellness or HealthyAI Expert brand. Out-of-scope" | |
| ) | |
| if __name__ == "__main__": | |
| interface.launch(server_name="0.0.0.0", server_port=7860) | |