Phoenix21 commited on
Commit
87f7c27
·
verified ·
1 Parent(s): 8d79fb3

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from pipeline import run_with_chain
3
+ def ask_dailywellness(query: str) →> str:
4
+ return run_with_chain (query)
5
+ interface = gr. Interface (
6
+ fn=ask_dailywellness,
7
+ inputs=gr.Textbox(lines=2, label="Ask DailyWellnessAI"),
8
+ outputs=gr.Textbox(label="DailyWellnessAI Answer"),
9
+ title="DailyWellnessAI",
10
+ description="Ask about wellness or DailyWellnessAI brand. Out-of-scope
11
+ )
12
+ if _name_="__main__":
13
+ interface. launch(server_name="0.0.0.0", server_port=7860)