Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from __future__ import print_function
|
|
| 2 |
from flask import Flask, render_template,request,flash , json, url_for,g , redirect , jsonify , send_file ,make_response
|
| 3 |
import os
|
| 4 |
import json
|
| 5 |
-
import fitz
|
| 6 |
from PIL import Image
|
| 7 |
import cv2
|
| 8 |
import numpy as np
|
|
@@ -89,7 +89,7 @@ def searchDocument():
|
|
| 89 |
|
| 90 |
@app.route('/legends',methods=["GET", "POST"])
|
| 91 |
def legendDirectory():
|
| 92 |
-
return render_template('
|
| 93 |
|
| 94 |
@app.route('/searchInDocs',methods=["GET", "POST"])
|
| 95 |
def getSearchinDocs():
|
|
@@ -725,7 +725,6 @@ def cvtSummarytoXML(jsdata):
|
|
| 725 |
xmllink=google_sheet_to_xml.create_xml(documentname=result[1],dbPath=path)
|
| 726 |
return jsonify(xmllink)
|
| 727 |
|
| 728 |
-
|
| 729 |
#_________________________________________________________________________________________________________________________
|
| 730 |
#_________________________________________________________________________________________________________________________
|
| 731 |
|
|
|
|
| 2 |
from flask import Flask, render_template,request,flash , json, url_for,g , redirect , jsonify , send_file ,make_response
|
| 3 |
import os
|
| 4 |
import json
|
| 5 |
+
import fitz
|
| 6 |
from PIL import Image
|
| 7 |
import cv2
|
| 8 |
import numpy as np
|
|
|
|
| 89 |
|
| 90 |
@app.route('/legends',methods=["GET", "POST"])
|
| 91 |
def legendDirectory():
|
| 92 |
+
return render_template('legendDirectory.html')
|
| 93 |
|
| 94 |
@app.route('/searchInDocs',methods=["GET", "POST"])
|
| 95 |
def getSearchinDocs():
|
|
|
|
| 725 |
xmllink=google_sheet_to_xml.create_xml(documentname=result[1],dbPath=path)
|
| 726 |
return jsonify(xmllink)
|
| 727 |
|
|
|
|
| 728 |
#_________________________________________________________________________________________________________________________
|
| 729 |
#_________________________________________________________________________________________________________________________
|
| 730 |
|