Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -253,6 +253,10 @@ def KBUpload():
|
|
| 253 |
def aiassist():
|
| 254 |
return render_template("index.html")
|
| 255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
@app.route('/agent/chat/suggestion', methods=['POST'])
|
| 257 |
def process_json():
|
| 258 |
print("RQST")
|
|
@@ -314,7 +318,7 @@ def file_Upload():
|
|
| 314 |
global vectordb
|
| 315 |
vectordb = createVectorDB(documents, embeddingModelID)
|
| 316 |
#vectordb=createVectorDB(documents)
|
| 317 |
-
return render_template("
|
| 318 |
|
| 319 |
if __name__ == '__main__':
|
| 320 |
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
|
| 253 |
def aiassist():
|
| 254 |
return render_template("index.html")
|
| 255 |
|
| 256 |
+
@app.route('/aisearch')
|
| 257 |
+
def aiassist():
|
| 258 |
+
return render_template("aisearch.html")
|
| 259 |
+
|
| 260 |
@app.route('/agent/chat/suggestion', methods=['POST'])
|
| 261 |
def process_json():
|
| 262 |
print("RQST")
|
|
|
|
| 318 |
global vectordb
|
| 319 |
vectordb = createVectorDB(documents, embeddingModelID)
|
| 320 |
#vectordb=createVectorDB(documents)
|
| 321 |
+
return render_template("aisearch.html")
|
| 322 |
|
| 323 |
if __name__ == '__main__':
|
| 324 |
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|