Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from flask import Flask,render_template,request,Response,jsonify,session,redirect,url_for
|
| 2 |
import numpy as np
|
| 3 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 4 |
import matplotlib.pyplot as plt
|
|
@@ -14,6 +14,7 @@ from io import BytesIO
|
|
| 14 |
app=Flask(__name__)
|
| 15 |
folder='static/images'
|
| 16 |
app.config["UPLOAD_FOLDER"]=folder
|
|
|
|
| 17 |
app.secret_key="mykey"
|
| 18 |
pair={}
|
| 19 |
def pred_ver_and_save_data(img,img_file,data,digit,name,vector,brand,desc,cat,price):
|
|
|
|
| 1 |
+
from flask import Flask,render_template,request,Response,jsonify,session,redirect,url_for,session
|
| 2 |
import numpy as np
|
| 3 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 4 |
import matplotlib.pyplot as plt
|
|
|
|
| 14 |
app=Flask(__name__)
|
| 15 |
folder='static/images'
|
| 16 |
app.config["UPLOAD_FOLDER"]=folder
|
| 17 |
+
app.config['PERMANENT_SESSION_LIFETIME']=3600
|
| 18 |
app.secret_key="mykey"
|
| 19 |
pair={}
|
| 20 |
def pred_ver_and_save_data(img,img_file,data,digit,name,vector,brand,desc,cat,price):
|