markpeace commited on
Commit
af86562
·
1 Parent(s): 43826e7
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -11,14 +11,14 @@ CORS(app)
11
  load_dotenv()
12
 
13
 
14
- @app.route("/ask", methods=['GET','POST'])
15
  def index():
16
- from agent._create import agent
17
- return agent(request.values)
18
-
19
 
20
  @app.route("/train/faq", methods=['GET','POST'])
21
  def train_faq():
22
- #from train.faq import train
23
- #return train();
24
- return "hi"
 
11
  load_dotenv()
12
 
13
 
14
+ @app.route("/", methods=['GET','POST'])
15
  def index():
16
+ #from agent._create import agent
17
+ #return agent(request.values)
18
+ return "hi"
19
 
20
  @app.route("/train/faq", methods=['GET','POST'])
21
  def train_faq():
22
+ from train.faq import train
23
+ return train();
24
+