Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,11 +61,11 @@ def test():
|
|
61 |
|
62 |
@app.route('/KBUploader')
|
63 |
def KBUpload():
|
64 |
-
return render_template("
|
65 |
|
66 |
@app.route('/aiassist')
|
67 |
def aiassist():
|
68 |
-
return render_template("
|
69 |
|
70 |
@app.route('/agent/chat/suggestion', methods=['POST'])
|
71 |
def process_json():
|
@@ -120,7 +120,7 @@ def file_Upload():
|
|
120 |
print(uploads_dir)
|
121 |
documents = loadKB(fileprovided, urlProvided, uploads_dir, request)
|
122 |
vectordb=createVectorDB(documents)
|
123 |
-
return render_template("
|
124 |
|
125 |
def createPrompt(cName, cCity, custDetailsPresent):
|
126 |
cProfile = "Customer's Name is " + cName + "\nCustomer's lives in or customer's Resident State or Customer's place is " + cCity + "\n"
|
|
|
61 |
|
62 |
@app.route('/KBUploader')
|
63 |
def KBUpload():
|
64 |
+
return render_template("KBTrain.html")
|
65 |
|
66 |
@app.route('/aiassist')
|
67 |
def aiassist():
|
68 |
+
return render_template("index.html")
|
69 |
|
70 |
@app.route('/agent/chat/suggestion', methods=['POST'])
|
71 |
def process_json():
|
|
|
120 |
print(uploads_dir)
|
121 |
documents = loadKB(fileprovided, urlProvided, uploads_dir, request)
|
122 |
vectordb=createVectorDB(documents)
|
123 |
+
return render_template("index.html")
|
124 |
|
125 |
def createPrompt(cName, cCity, custDetailsPresent):
|
126 |
cProfile = "Customer's Name is " + cName + "\nCustomer's lives in or customer's Resident State or Customer's place is " + cCity + "\n"
|