File size: 499 Bytes
7dfc5f5
022d277
7dfc5f5
ce9f68f
022d277
7dfc5f5
 
 
 
 
 
022d277
87f7c27
7dfc5f5
 
022d277
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
from pipeline import run_with_chain

def ask_dailywellness(query: str) -> str:
    return run_with_chain(query)

interface = gr.Interface(
    fn=ask_dailywellness,
    inputs=gr.Textbox(lines=2, label="Ask DailyWellnessAI"),
    outputs=gr.Textbox(label="DailyWellnessAI Answer"),
    title="DailyWellnessAI",
    description="Ask about wellness or DailyWellnessAI brand. Out-of-scope"
)

if __name__ == "__main__":
    interface.launch(server_name="0.0.0.0", server_port=7860)